ShortLinks Pro 1.3.0 has 95 actions and 178 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when ShortLinks Pro fires an action
add_action( 'do_meta_boxes', function( $name, $arg2, $object ) {
// Your code runs here.
}, 10, 3 );
// Change a value ShortLinks Pro is about to use
add_filter( 'cmb2_rest_enforce_options_page_read_permissions', function( $value, $cmb ) {
// Change $value here.
return $value;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * This action is documented in wp-admin/edit-form-advanced.php */ do_action( 'do_meta_boxes', $ct_table->name, 'normal', $this->object ); -
/** * This action is documented in wp-admin/edit-form-advanced.php */ do_action( 'add_meta_boxes', $ct_table->name, $this->object ); -
/** * This action is documented in wp-admin/edit-form-advanced.php */ do_action( "add_meta_boxes_{$ct_table->name}", $this->object ); -
cmb2_rest_enforce_options_page_read_permissions
filter Used by 7 plugins → Copy link Customise this hook/** * Whether to align options-page box REST reads with WordPress core's * settings/options convention (reads gated behind a capability). */ apply_filters( 'cmb2_rest_enforce_options_page_read_permissions', false, $cmb ); -
/** * Fires after a single object is completely created or updated via the REST * API. */ do_action( "ct_rest_after_insert_{$this->name}", $object, $request, true ); -
/** * Fires after a single object is created or updated via the REST API. */ do_action( "ct_rest_insert_{$this->name}", $object, $request, true ); -
/** * Available filter to past custom views */ apply_filters( "{$ct_table->name}_get_views", $views ); -
/** * Filters values for the meta key dropdown in the Custom Fields meta box. */ apply_filters( "{$ct_table->name}_meta_form_keys", null, $object ); -
/** * Filters the number of custom fields to retrieve for the drop-down in the * Custom Fields meta box. */ apply_filters( "{$ct_table->name}_meta_form_limit", 30 ); -
/** * Filters the array of row action links on the Posts list table. */ apply_filters( "{$ct_table->name}_row_actions", $actions, $item ); -
/** * Allows overloading the object (CMB2 or CMB2_Field) with additional * capabilities by registering hook callbacks. */ apply_filters_ref_array( "{$object_class}_inherit_{$method}", $args ); -
/** * Filters the bulk action updated messages. */ apply_filters( 'bulk_object_updated_messages', $bulk_messages, $bulk_counts ); -
/** * Filter attributes for a field type. The dynamic portion of the hook name, * $element, refers to the field type. */ apply_filters( "cmb2_{$element}_attributes", $args, $type_defaults, $this->field, $this->types ); -
/** * Filter for determining if a field value has a valid image file-type * extension. */ apply_filters( "cmb2_{$field_id}_is_valid_img_ext", $is_valid, $file, $file_ext ); -
/** * Fires before fields have been processed/saved. */ do_action( "cmb2_{$object_type}_process_fields_{$this->cmb_id}", $this, $this->object_id() ); -
/** * Fires on the admin side when CMB2 is included/loaded. */ do_action( 'cmb2_admin_init' ); -
/** * Hook after field row ends. */ do_action( "cmb2_after_{$field_type}_field_row", $this ); -
/** * Hook after form form has been rendered */ do_action( "cmb2_after_{$object_type}_form_{$this->cmb_id}", $object_id, $this ); -
/** * Hook after field row ends. */ do_action( 'cmb2_after_field_row', $this ); -
/** * Hook after form form has been rendered */ do_action( 'cmb2_after_form', $this->cmb_id, $object_id, $object_type, $this ); -
/** * Fires after CMB2 initiation process has been completed */ do_action( 'cmb2_after_init' ); -
/** * By default, no special permissions needed. */ apply_filters( 'cmb2_api_get_boxes_permissions_check', true, $this ); -
/** * Hook before field row begins. */ do_action( "cmb2_before_{$field_type}_field_row", $this ); -
/** * Hook before form table begins */ do_action( "cmb2_before_{$object_type}_form_{$this->cmb_id}", $object_id, $this ); -
/** * Hook before field row begins. */ do_action( 'cmb2_before_field_row', $this ); -
/** * Hook before form table begins */ do_action( 'cmb2_before_form', $this->cmb_id, $object_id, $object_type, $this ); -
/** * Filter to determine if metabox is allowed to save. */ apply_filters( 'cmb2_can_save', $can_save, $this->cmb ); -
/** * Filters the custom field display class used for displaying the field. Class * is required to extend CMB2_Type_Base. */ apply_filters( "cmb2_display_class_{$fieldtype}", $display_class_name, $field ); -
/** * Filter to determine if CMB2'S css should be enqueued. */ apply_filters( 'cmb2_enqueue_css', true ); -
/** * Filter to determine if CMB2'S JS should be enqueued. */ apply_filters( 'cmb2_enqueue_js', true ); -
/** * Filter the CMB2 Field arguments after processing. */ apply_filters( 'cmb2_field_arguments', $args, $this ); -
/** * Filtering the CMB2 Field arguments once merged with the defaults, but before * further processing. */ apply_filters( 'cmb2_field_arguments_raw', $args, $this ); -
/** * Filter the CMB2 Field defaults. */ apply_filters( 'cmb2_field_defaults', $defaults, $args['id'], $args['type'], $this ); -
/** * Filter the value before it is sent to the REST request. */ apply_filters( 'cmb2_get_rest_value', $value, $this ); -
/** * Filter the value before it is sent to the REST request. */ apply_filters( "cmb2_get_rest_value_{$field_type}", $value, $this ); -
/** * Filter the value before it is sent to the REST request. */ apply_filters( "cmb2_get_rest_value_for_{$field_id}", $value, $this ); -
/** * Allow for adding additional HTML attributes to a group wrapper. */ apply_filters( 'cmb2_group_wrap_attributes', $group_wrap_attributes, $field_group ); -
/** * Fires when CMB2 is included/loaded */ do_action( 'cmb2_init' ); -
/** * Hook during initiation of CMB2 object */ do_action( "cmb2_init_{$this->cmb_id}", $this ); -
/** * Fires after all CMB2 instances are created */ do_action( 'cmb2_init_before_hookup' ); -
/** * Initiates the box "hookup" into WordPress. */ do_action( "cmb2_init_hookup_{$cmb->cmb_id}", $cmb ); -
/** * Filter the CMB location url. */ apply_filters( 'cmb2_meta_box_url', $cmb2_url, CMB2_VERSION ); -
/** * For back-compat. Does the dirty-work of instantiating all the CMB2 instances * for the cmb2_meta_boxes filter */ apply_filters( 'cmb2_meta_boxes', array() ); -
/** * Filter field types that are non-repeatable. */ apply_filters( 'cmb2_non_repeatable_fields', array() ); -
/** * Filter whether to override removing of meta value. */ apply_filters( "cmb2_override_{$a['field_id']}_meta_remove", $override, $a, $this->args(), $this ); -
/** * Filter and parameters are documented for 'cmb2_override_meta_save' filter * (above). */ apply_filters( "cmb2_override_{$a['field_id']}_meta_save", $override, $a, $this->args(), $this ); -
/** * Filter and parameters are documented for 'cmb2_override_meta_value' filter * (above). */ apply_filters( "cmb2_override_{$a['field_id']}_meta_value", $data, $this->object_id, $a, $this ); -
/** * Filter whether to override removing of meta value. Returning a non-null * value will effectively short-circuit the function. */ apply_filters( 'cmb2_override_meta_remove', null, $a, $this->args(), $this ); -
/** * Filter whether to override saving of meta value. Returning a non-null value * will effectively short-circuit the function. */ apply_filters( 'cmb2_override_meta_save', null, $a, $this->args(), $this ); -
/** * Filter whether to override getting of meta value. Returning a non * 'cmb2_field_no_override_val' value will effectively short-circuit the value * retrieval. */ apply_filters( 'cmb2_override_meta_value', 'cmb2_field_no_override_val', $this->object_id, $a, $this ); -
/** * A filter to bypass the default display. */ apply_filters( "cmb2_pre_field_display_{$field_type}", null, $this, $display ); -
/** * Pass non-existent field types through an action. */ do_action( "cmb2_render_{$fieldtype}", $this->field, $this->field->escaped_value(), $this->field->object_id, $this->field->object_type, $this ); -
/** * Filters the custom field type class used for rendering the field. Class is * required to extend CMB2_Type_Base. */ apply_filters( "cmb2_render_class_{$fieldtype}", $render_class_name, $this ); -
/** * By default, 'text_url' and 'text' fields get table-like styling */ apply_filters( 'cmb2_repeat_table_row_types', array( 'text_url', 'text', ) ); -
/** * Whether CMB2 REST field reads of a user follow WordPress core's user read * permissions: core shows a user only to that user, to holders of * `edit_user`/`list_users`, or when the user has published posts. */ apply_filters( 'cmb2_rest_enforce_user_read_permissions', null, $cmb ); -
/** * Filter the prepared CMB2 item response. */ apply_filters( 'cmb2_rest_prepare', rest_ensure_response( $data ), $this->request, $this ); -
/** * Filter whether 'taxonomy_*' fields should return their value when being * sanitized. */ apply_filters( "cmb2_return_taxonomy_values_{$cmb_id}", $return_values, $this ); -
/** * Globally filter row classes */ apply_filters( 'cmb2_row_classes', implode( ' ', $classes ), $this ); -
/** * Filter the value before it is saved. */ apply_filters( "cmb2_sanitize_{$field_type}", null, $sanitizer->value, $this->object_id, $this->args(), $sanitizer ); -
/** * Fires after all fields have been saved. */ do_action( "cmb2_save_{$object_type}_fields", $object_id, $this->cmb_id, $this->updated, $this ); -
/** * Fires after all fields have been saved. */ do_action( "cmb2_save_{$object_type}_fields_{$this->cmb_id}", $object_id, $this->updated, $this ); -
/** * Hooks after save field action. */ do_action( 'cmb2_save_field', $field_id, $updated, $action, $this ); -
/** * Hooks after save field action. */ do_action( "cmb2_save_field_{$field_id}", $updated, $action, $this ); -
/** * Filter the metabox object type. */ apply_filters( 'cmb2_set_box_object_type', $mb_object_type, $found_type, $this ); -
/** * Filter the object id. */ apply_filters( 'cmb2_set_object_id', $object_id, $this ); -
/** * Whether to auto-load the option when WordPress starts up. */ apply_filters( "cmb2_should_autoload_{$this->key}", true, $this ); -
/** * Filter to determine if CMB2 should be pre-enqueued on the current page. */ apply_filters( 'cmb2_should_pre_enqueue', $should_pre_enqueue, $hook, $this ); -
/** * Filter to determine if metabox should show. Default is true. */ apply_filters( 'cmb2_show_on', $show, $this->cmb->meta_box, $this->cmb ); -
/** * Filter to determine if the term's fields should show in the "Add term" * section. */ apply_filters( "cmb2_show_on_term_add_form_{$this->cmb->cmb_id}", $show_on_add, $this->cmb ); -
/** * Filters the registered style dependencies for the cmb2 stylesheet. */ apply_filters( 'cmb2_style_dependencies', array() ); -
/** * Default (option-none) taxonomy-radio value. */ apply_filters( "cmb2_taxonomy_radio_{$field_id}_default_value", $option_none_value ); -
/** * Default (option-none) taxonomy-radio value. */ apply_filters( 'cmb2_taxonomy_radio_default_value', '' ); -
/** * Default (option-none) taxonomy-select value. */ apply_filters( "cmb2_taxonomy_select_{$field_id}_default_value", $option_none_value ); -
/** * Default (option-none) taxonomy-select value. */ apply_filters( 'cmb2_taxonomy_select_default_value', '' ); -
/** * Filter the value for escaping before it is ouput. */ apply_filters( "cmb2_types_esc_{$field_type}", null, $meta_value, $this->args(), $this ); -
/** * Which image types are considered valid image file extensions. */ apply_filters( 'cmb2_valid_img_types', $valid_types ); -
/** * Globally filter box wrap classes */ apply_filters( 'cmb2_wrap_classes', $classes, $this ); -
/** * Setup the default object for the add new view. */ apply_filters( "ct_{$ct_table->name}_default_data", array() ); -
/** * Filter to override the submit button label. */ apply_filters( "ct_{$ct_table->name}_edit_screen_submit_label", $submit_label, $object, $ct_table, $this->editing, $this ); -
/** * Fires at bottom the submit meta box. */ do_action( "ct_{$ct_table->name}_edit_screen_submit_meta_box_bottom", $object, $ct_table, $this->editing, $this ); -
ct_{$ct_table->name}_edit_screen_submit_meta_box_minor_publishing_actions
action Copy link Customise this hook/** * Fires inside minor publishing actions from submit meta box. */ do_action( "ct_{$ct_table->name}_edit_screen_submit_meta_box_minor_publishing_actions", $object, $ct_table, $this->editing, $this ); -
ct_{$ct_table->name}_edit_screen_submit_meta_box_misc_publishing_actions
action Copy link Customise this hook/** * Fires inside misc publishing actions from submit meta box. */ do_action( "ct_{$ct_table->name}_edit_screen_submit_meta_box_misc_publishing_actions", $object, $ct_table, $this->editing, $this ); -
ct_{$ct_table->name}_edit_screen_submit_meta_box_submit_post_bottom
action Copy link Customise this hook/** * Fires at bottom of submit meta box submit post element. */ do_action( "ct_{$ct_table->name}_edit_screen_submit_meta_box_submit_post_bottom", $object, $ct_table, $this->editing, $this ); -
ct_{$ct_table->name}_edit_screen_submit_meta_box_submit_post_top
action Copy link Customise this hook/** * Fires at top of submit meta box submit post element. */ do_action( "ct_{$ct_table->name}_edit_screen_submit_meta_box_submit_post_top", $object, $ct_table, $this->editing, $this ); -
/** * Fires at top of the submit meta box. */ do_action( "ct_{$ct_table->name}_edit_screen_submit_meta_box_top", $object, $ct_table, $this->editing, $this ); -
/** * Fires immediately before meta of a specific type is added. */ do_action( "ct_add_{$ct_table->name}_meta", $object_id, $meta_key, $_meta_value ); -
/** * Filters whether to add metadata of a specific type. */ apply_filters( "ct_add_{$ct_table->name}_metadata", null, $object_id, $meta_key, $meta_value, $unique ); -
/** * Fires immediately after meta of a specific type is added. */ do_action( "ct_added_{$ct_table->name}_meta", $mid, $object_id, $meta_key, $_meta_value ); -
/** * Fires after a post is deleted, at the conclusion of ct_delete_object(). */ do_action( 'ct_after_delete_object', $object_id ); -
/** * Filter capability to check */ apply_filters( "ct_ajax_list_table_{$ct_table->name}_capability", 'manage_options' ); -
/** * Filter query vars */ apply_filters( "ct_ajax_list_table_{$ct_table->name}_query_args", $query_args ); -
/** * Fires before a post is deleted, at the start of ct_delete_object(). */ do_action( 'ct_before_delete_object', $object_id ); -
/** * Fires immediately after the given object's cache is cleaned. */ do_action( 'ct_clean_object_cache', $object->$primary_key, $object ); -
/** * Fires immediately before deleting metadata of a specific type. */ do_action( "ct_delete_{$ct_table->name}_meta", $meta_ids, $object_id, $meta_key, $_meta_value ); -
/** * Filters whether to delete metadata of a specific type. */ apply_filters( "ct_delete_{$ct_table->name}_metadata", null, $object_id, $meta_key, $meta_value, $delete_all ); -
/** * This action is documented in wp-includes/meta.php */ do_action( "ct_delete_{$meta_type}_meta", (array) $meta_id, $object_id, $meta->meta_key, $meta->meta_value ); -
/** * Fires immediately before a post is deleted from the database. */ do_action( 'ct_delete_object', $object_id ); -
/** * Fires immediately after deleting metadata of a specific type. */ do_action( "ct_deleted_{$ct_table->name}_meta", $meta_ids, $object_id, $meta_key, $_meta_value ); -
/** * This action is documented in wp-includes/meta.php */ do_action( "ct_deleted_{$meta_type}_meta", (array) $meta_id, $object_id, $meta->meta_key, $meta->meta_value ); -
/** * Fires immediately after a post is deleted from the database. */ do_action( 'ct_deleted_object', $object_id ); -
/** * Fires at the end of the edit form. */ do_action( 'ct_edit_form_bottom', $this->object ); -
/** * Fires at the beginning of the edit form. */ do_action( 'ct_edit_form_top', $this->object ); -
/** * Fires once an existing post has been updated. */ do_action( 'ct_edit_object', $object_id, $object ); -
/** * Filters the number of found posts for the query. */ apply_filters_ref_array( 'ct_found_results', array( $this->found_results, &$this ) ); -
/** * Filters the query to run for retrieving the found posts. */ apply_filters_ref_array( 'ct_found_results_query', array( 'SELECT FOUND_ROWS()', &$this ) ); -
/** * Filters whether to retrieve metadata of a specific type. */ apply_filters( "ct_get_{$ct_table->name}_metadata", null, $object_id, $meta_key, $single ); -
/** * Fires once a post has been saved. */ do_action( 'ct_insert_object', $object_id, $object, $update ); -
/** * Filters slashed post data just before it is inserted into the database. */ apply_filters( 'ct_insert_object_data', $object_data, $original_object_data ); -
/** * Utility filter to generate views based on a given field */ apply_filters( "ct_list_{$ct_table->name}_views_field", '' ); -
/** * Labels for the filed id */ apply_filters( "ct_list_{$ct_table->name}_views_field_labels", array() ); -
/** * Fires for each custom column of a specific CT table in the list table. */ do_action( "ct_manage_{$ct_table->name}_custom_column", $column_name, $item->$primary_key, $item, $ct_table ); -
/** * Fires once an existing post has been updated. */ do_action( 'ct_object_updated', $object_id, $object_after, $object_before ); -
/** * Fires after the main query vars have been parsed. */ do_action_ref_array( 'ct_parse_query', array( &$this ) ); -
/** * Filters whether a post deletion should take place. */ apply_filters( 'ct_pre_delete_object', null, $ct_object, $force_delete ); -
/** * Fires after the query variable object is created, but before the actual * query is run. */ do_action_ref_array( 'ct_pre_get_results', array( &$this ) ); -
/** * Fires immediately before an existing object is updated in the database. */ do_action( 'ct_pre_object_update', $object_id, $object_data ); -
/** * Filters all query clauses at once, for convenience. */ apply_filters_ref_array( 'ct_query_clauses', array( compact( $pieces ), &$this ) ); -
/** * Filters all query clauses at once, for convenience. */ apply_filters_ref_array( 'ct_query_clauses_request', array( compact( $pieces ), &$this ) ); -
/** * Filters the DISTINCT clause of the query. */ apply_filters_ref_array( 'ct_query_distinct', array( $distinct, &$this ) ); -
/** * Filters the DISTINCT clause of the query. */ apply_filters_ref_array( 'ct_query_distinct_request', array( $distinct, &$this ) ); -
/** * Filters the SELECT clause of the query. */ apply_filters_ref_array( 'ct_query_fields', array( $fields, &$this ) ); -
/** * Filters the SELECT clause of the query. */ apply_filters_ref_array( 'ct_query_fields_request', array( $fields, &$this ) ); -
/** * Filters the GROUP BY clause of the query. */ apply_filters_ref_array( 'ct_query_groupby', array( $groupby, &$this ) ); -
/** * Filters the GROUP BY clause of the query. */ apply_filters_ref_array( 'ct_query_groupby_request', array( $groupby, &$this ) ); -
/** * Filters the JOIN clause of the query. */ apply_filters_ref_array( 'ct_query_join', array( $join, &$this ) ); -
/** * Filters the JOIN clause of the query. */ apply_filters_ref_array( 'ct_query_join_paged', array( $join, &$this ) ); -
/** * Filters the JOIN clause of the query. */ apply_filters_ref_array( 'ct_query_join_request', array( $join, &$this ) ); -
/** * Filters the LIMIT clause of the query. */ apply_filters_ref_array( 'ct_query_limits_request', array( $limits, &$this ) ); -
/** * Filters the ORDER BY clause of the query. */ apply_filters_ref_array( 'ct_query_orderby', array( $orderby, &$this ) ); -
/** * Filters the ORDER BY clause of the query. */ apply_filters_ref_array( 'ct_query_orderby_request', array( $orderby, &$this ) ); -
/** * Filters the completed SQL query before sending. */ apply_filters_ref_array( 'ct_query_request', array( $this->request, &$this ) ); -
/** * Filters the Post IDs SQL request before sending. */ apply_filters( 'ct_query_request_ids', $this->request, $this ); -
/** * Filters the raw post results array, prior to status checks. */ apply_filters_ref_array( 'ct_query_results', array( $this->results, &$this ) ); -
/** * Filters the search SQL that is used in the WHERE clause of WP_Query. */ apply_filters_ref_array( 'ct_query_search', array( $search, &$this ) ); -
/** * Filters the prefix that indicates that a search term should be excluded from * results. */ apply_filters( 'ct_query_search_exclusion_prefix', '-' ); -
/** * Fires to announce the query's current selection parameters. */ do_action( 'ct_query_selection', $where . $groupby . $orderby . $limits . $join ); -
/** * Filters the WHERE clause of the query. */ apply_filters_ref_array( 'ct_query_where', array( $where, &$this ) ); -
/** * Filters the WHERE clause of the query. */ apply_filters_ref_array( 'ct_query_where_paged', array( $where, &$this ) ); -
/** * Filters the WHERE clause of the query. */ apply_filters_ref_array( 'ct_query_where_request', array( $where, &$this ) ); -
/** * Filters the LIMIT clause of the query. */ apply_filters_ref_array( 'ct_querylimits', array( $limits, &$this ) ); -
/** * Filters the arguments for registering a table. */ apply_filters( 'ct_register_table_args', $args, $this->name ); -
/** * Filter collection parameters for the rest controller. */ apply_filters( "ct_rest_{$this->name}_collection_params", $query_params, $ct_table ); -
/** * Filter orderby parameters mappings for the rest controller. */ apply_filters( "ct_rest_{$this->name}_orderby_mappings", $orderby_mappings, $ct_table, $prepared_args, $request ); -
/** * Filter parameters mappings for the rest controller. */ apply_filters( "ct_rest_{$this->name}_parameter_mappings", $parameter_mappings, $ct_table, $request ); -
/** * Filters the query arguments for a request. */ apply_filters( "ct_rest_{$this->name}_query", $args, $request ); -
/** * Filters a post before it is inserted via the REST API. */ apply_filters( "ct_rest_{$this->name}_sanitize_field_value", $value, $field, $request ); -
/** * Filter item schema for the rest controller. */ apply_filters( "ct_rest_{$this->name}_schema", $schema ); -
/** * Filters whether a post is trashable. */ apply_filters( "ct_rest_{$this->name}_trashable", $supports_trash, $object ); -
/** * Fires immediately after a single post is deleted or trashed via the REST * API. */ do_action( "ct_rest_delete_{$this->name}", $object, $response, $request ); -
/** * Filters an object before it is inserted via the REST API. */ apply_filters( "ct_rest_pre_insert_{$this->name}", $prepared_object, $request ); -
/** * Filters the object data for a response. */ apply_filters( "ct_rest_prepare_{$this->name}", $response, $object, $request ); -
/** * Filters the object field value for a response. */ apply_filters( "ct_rest_prepare_{$this->name}_field_value", $value, $field, $object, $request, $fields ); -
/** * Filters the query_vars used in get_items() for the constructed query. */ apply_filters( "ct_rest_query_var-{$key}", $value ); -
/** * Filters the posts array before the query takes place. */ apply_filters_ref_array( 'ct_results_pre_query', array( null, &$this ) ); -
/** * Fires once a post has been saved. */ do_action( 'ct_save_object', $object_id, $object, $update ); -
/** * Fires once a object has been saved. */ do_action( "ct_save_object_{$ct_table->name}", $object_id, $object, $update ); -
/** * Filters stopwords used when parsing search terms. */ apply_filters( 'ct_search_stopwords', $stopwords ); -
/** * Filters the table updated messages (string keys allowed!). */ apply_filters( 'ct_table_updated_messages', $messages ); -
/** * Filters the array of retrieved posts after they've been fetched and * internally processed. */ apply_filters_ref_array( 'ct_the_results', array( $this->results, &$this ) ); -
/** * Fires immediately before updating metadata of a specific type. */ do_action( "ct_update_{$ct_table->name}_meta", $meta_id, $object_id, $meta_key, $_meta_value ); -
/** * Filters whether to update metadata of a specific type. */ apply_filters( "ct_update_{$ct_table->name}_metadata", null, $object_id, $meta_key, $meta_value, $prev_value ); -
/** * Fires immediately after updating metadata of a specific type. */ do_action( "ct_updated_{$ct_table->name}_meta", $meta_id, $object_id, $meta_key, $_meta_value ); -
/** * Filters a screen option value before it is set. */ apply_filters( 'ct-set-screen-option', false, $option, $value ); -
/** * Fires when a deprecated argument is called. This is a WP core action. */ do_action( 'deprecated_argument_run', $function, $message, $version ); -
/** * Filters whether to trigger an error for deprecated arguments. This is a WP * core filter. */ apply_filters( 'deprecated_argument_trigger_error', true ); -
/** * Filters the columns displayed in the list table of a specific CT table. */ apply_filters( "manage_{$ct_table->name}_columns", $columns, $ct_table ); -
/** * Filters the sortable columns in the list table of a specific CT table. */ apply_filters( "manage_{$ct_table->name}_sortable_columns", $sortable_columns, $ct_table ); -
/** * Filter the post. */ apply_filters( 'rest_the_post', $post_obj, $post ); -
/** * Filter the final box args that will be passed to CMB2 */ apply_filters( "shortlinkspro_{$hook_id}_box", $box, $id, $title, $object_types, $fields, $tabs, $args ); -
/** * Filter box fields to allow to extend it */ apply_filters( "shortlinkspro_{$hook_id}_fields", $fields, $args ); -
/** * Filter box tabs to allow extend it */ apply_filters( "shortlinkspro_{$hook_id}_tabs", $args['tabs'], $fields, $args ); -
/** * Available action to let other plugins process anything after the clicks * cleanup */ do_action( 'shortlinkspro_auto_clicks_cleanup_finished', $date ); -
/** * Before redirect */ do_action( 'shortlinkspro_before_redirect', $link, $parameters, $url ); -
/** * Action triggered on deactivation to clear scheduled events */ do_action( 'shortlinkspro_clear_scheduled_events' ); -
/** * Action available when a click was tracked */ do_action( 'shortlinkspro_click_tracked', $click_id, $click_data, $link, $parameters ); -
/** * Filter to exclude a meta on clone this item $table: table name $meta_key: * The meta key */ apply_filters( "shortlinkspro_clone_{$table}_meta_{$meta_key}_excluded", false ); -
/** * Filter available to decide if link clicks should be deleted when a link gets * deleted */ apply_filters( 'shortlinkspro_delete_clicks_on_delete_link', true, $object_id ); -
/** * Filter available to override geolocation provider */ apply_filters( 'shortlinkspro_geolocation_provider', 'ip-api', $ip ); -
/** * Filter available to override the geolocation request */ apply_filters( 'shortlinkspro_geolocation_request', 'no_override', $ip, $provider ); -
/** * Filter the period date range */ apply_filters( 'shortlinkspro_get_period_range', $date_range, $period ); -
/** * Filter registered time periods */ apply_filters( 'shortlinkspro_get_time_periods', array( 'this-week' => __( 'Current Week', 'shortlinkspro' ), 'past-week' => __( 'Past Week', 'shortlinkspro' ), 'this-month' => __( 'Current Month', 'shortlinkspro' ), 'past-month' => __( 'Past Month', 'shortlinkspro' ), 'this-year' => __( 'Current Year', 'shortlinkspro' ), 'past-year' => __( 'Past Year', 'shortlinkspro' ), 'custom' => __( 'Custom', 'shortlinkspro' ), ) ); -
/** * Filter to hook the import from the registered plugin */ apply_filters( 'shortlinkspro_import_from_plugin_result', $result, $plugin, $group, $loop ); -
/** * Row actions, after duplicate (for other plugins). */ apply_filters( 'shortlinkspro_links_row_actions_after_duplicate', $actions, $object ); -
/** * Filter to decide if should redirect or not */ apply_filters( 'shortlinkspro_maybe_redirect', true, $link, $parameters ); -
/** * Filter to override the meta value */ apply_filters( 'shortlinkspro_plugin_importer_insert_meta_value', $meta_value, $meta_key, $original_meta_value, $original_meta_key, $object_data, $object_metas ); -
/** * Action to process the redirect */ do_action( 'shortlinkspro_process_redirect', $link, $parameters, $url ); -
/** * Filter to override redirect URL (before parameter forwarding) */ apply_filters( 'shortlinkspro_redirect_url', $link->url, $link, $parameters ); -
/** * Filter to override redirect URL (after parameter forwarding) */ apply_filters( 'shortlinkspro_redirect_url_after_parameter_forwarding', $url, $link, $parameters ); -
/** * Action triggered on activation to schedule events */ do_action( 'shortlinkspro_schedule_events' ); -
/** * Filter: shortlinkspro_settings_{$section_id}_meta_boxes */ apply_filters( "shortlinkspro_settings_{$section_id}_meta_boxes", $meta_boxes ); -
/** * Filter: shortlinkspro_tools_{$section_id}_meta_boxes */ apply_filters( "shortlinkspro_tools_{$section_id}_meta_boxes", $meta_boxes ); -
/** * Filter available to extend tracking data */ apply_filters( 'shortlinkspro_track_click_data', $click_data, $link, $parameters ); -
/** * Filters whether to split the query. */ apply_filters( 'split_the_query', $split_the_query, $this ); -
apply_filters( 'plugin_locale', function_exists( 'determine_locale' ) ? determine_locale() : get_locale(), 'cmb2' ); -
apply_filters( 'cmb2_default_filter', $default, $this ); -
apply_filters_deprecated( "cmb2_validate_{$field_type}", array( null, $this->value, $this->field->object_id, $this->field->args(), $this ), '2.0.0', "cmb2_sanitize_{$field_type}" ); -
apply_filters( "{$ct_table->name}_bulk_actions", $actions ); -
do_action( "add_{$ct_table->name}_meta", $object_id, $meta_key, $_meta_value ); -
apply_filters( "add_{$ct_table->name}_metadata", $check, $object_id, $meta_key, $meta_value, $unique ); -
do_action( "add_meta_boxes_{self::$props[$this->id]['hook']}", NULL ); -
do_action( "added_{$ct_table->name}_meta", $mid, $object_id, $meta_key, $_meta_value ); -
do_action( 'after_delete_object', $object_id ); -
do_action( 'before_delete_object', $object_id ); -
apply_filters( 'cmb2_all_or_nothing_types', array( 'select', 'radio', 'radio_inline', 'taxonomy_select', 'taxonomy_select_hierarchical', 'taxonomy_radio', 'taxonomy_radio_inline', 'taxonomy_radio_hierarchical', ), $this ); -
apply_filters( 'cmb2_get_metabox_form', $form, $object_id, $cmb ); -
apply_filters( 'cmb2_get_metabox_form_format', $args['form_format'], $object_id, $cmb ); -
do_action( 'cmb2_init_hooks', $this ); -
apply_filters( 'cmb2_localized_data', $l10n ); -
apply_filters( "cmb2_override_option_get_{$this->key}", 'cmb2_no_override_option_get', $default, $this ); -
apply_filters( "cmb2_override_option_save_{$this->key}", 'cmb2_no_override_option_save', $this->options, $this ); -
apply_filters( 'cmb2_script_dependencies', self::$dependencies ); -
apply_filters( 'cmb2_select2_get_results_sql', $sql, $query_args ); -
apply_filters( "cmb2_select2_get_results_sql_{$from}", $sql, $query_args ); -
apply_filters( "cmb2_select2_get_results_sql_{$from}_{$field_id}", $sql, $query_args ); -
apply_filters( 'cmb2_tab_group_tabs', $tabs, $tab_group ); -
apply_filters( "cmb2_tabs_tab_{$tab['id']}_fields_selector", $fields_selector, $tab, $cmb_id, $object_id, $object_type, $cmb ); -
apply_filters( 'cmb2_tabs_tab_fields_selector', $fields_selector, $tab, $cmb_id, $object_id, $object_type, $cmb ); -
apply_filters( 'cmb2metatabs_after_form', $filterable, self::$props[ $this->id ]['page'] ); -
apply_filters( 'cmb2metatabs_before_form', $filterable, self::$props[ $this->id ]['page'] ); -
apply_filters( "ct_{$ct_table->name}_labels", $args, $ct_table ); -
do_action( 'ct_admin_init' ); -
apply_filters( 'ct_cmb2_get_sanitized_data', $sanitized_data, $data, $cmb ); -
apply_filters( 'ct_default_table_labels', $default_labels ); -
do_action( 'ct_init' ); -
do_action( "ct_init_{$this->name}_view", $this ); -
apply_filters( 'ct_languages_directory', $lang_dir ); -
do_action( 'ct_loader_load' ); -
apply_filters( "ct_manage_{$ct_table->name}_columns", $columns, $ct_table ); -
apply_filters( "ct_manage_{$ct_table->name}_sortable_columns", $sortable_columns, $ct_table ); -
apply_filters( "ct_query_{$ct_table->name}_orderby_allowed_keys", $allowed_keys, $orderby ); -
apply_filters( "ct_query_{$ct_table->name}_parse_orderby", $orderby_clause, $orderby ); -
apply_filters( "ct_query_{$ct_table->name}_search_fields", array() ); -
do_action( "ct_render_{$ct_table->name}_edit_form", 0 ); -
do_action( "ct_render_{$this->name}_view", $this ); -
do_action( 'ct_rest_api_init' ); -
do_action( "delete_{$ct_table->name}_meta", $meta_ids, $object_id, $meta_key, $_meta_value ); -
apply_filters( "delete_{$ct_table->name}_metadata", $check, $object_id, $meta_key, $meta_value, $delete_all ); -
do_action( "delete_{$meta_type}_meta", (array) $meta_id, $object_id, $meta->meta_key, $meta->meta_value ); -
do_action( 'delete_object', $object_id ); -
do_action( "deleted_{$ct_table->name}_meta", $meta_ids, $object_id, $meta_key, $_meta_value ); -
do_action( "deleted_{$meta_type}_meta", (array) $meta_id, $object_id, $meta->meta_key, $meta->meta_value ); -
do_action( 'deleted_object', $object_id ); -
apply_filters( "get_{$ct_table->name}_metadata", $check, $object_id, $meta_key, $single ); -
do_action( "manage_{$ct_table->name}_custom_column", $column_name, $item->$primary_key, $item, $ct_table ); -
apply_filters( 'oembed_ttl', DAY_IN_SECONDS, '', array(), 0 ); -
apply_filters( 'pre_delete_object', $check, $ct_object, $force_delete ); -
do_action( 'pre_object_update', $object_id, $object_data ); -
do_action( "shortlinkspro_action_{$_GET['shortlinkspro-action']}", $_GET ); -
do_action( "shortlinkspro_action_{$_POST['shortlinkspro-action']}", $_POST ); -
apply_filters( 'shortlinkspro_allowed_manager_capabilities', $allowed_capabilities ); -
apply_filters( 'shortlinkspro_click_rules_settings_fields', array( 'excluded_ips' => array( 'name' => __( 'Excluded IP Addresses', 'shortlinkspro' ), 'type' => 'text', 'tooltip' => __( 'Enter a comma-separated list of IP addresses or IP ranges you want to exclude from click tracking. Example: 192.168.0.1, 192.168.2.1, 192.168.*.*', 'shortlinkspro' ), 'label_cb' => 'cmb_tooltip_label_cb', ), 'exclude_robots' => array( 'name' => __( 'Exclude Robots', 'sho... ); -
apply_filters( 'shortlinkspro_clicks_cleanup_settings_fields', array( 'auto_clicks_cleanup' => array( 'name' => __( 'Clicks Auto-Cleanup', 'shortlinkspro' ), 'type' => 'checkbox', 'classes' => 'cmb2-switch', 'tooltip' => __( 'Check this option to automatically delete old click hits. You will be able to enter the number of days you want to keep the click hits stored.', 'shortlinkspro' ), 'label_cb' => 'cmb_tooltip_label_cb', ), 'auto_clicks_cleanup_days' =>... ); -
apply_filters( 'shortlinkspro_clicks_cleanup_tools_fields', array( 'clicks_cleanup_30' => array( 'name' => __( 'Delete clicks older than 30 days', 'shortlinkspro' ), 'desc' => __( 'This will delete all clicks entries that are older than 30 days.', 'shortlinkspro' ), 'type' => 'title', 'render_row_cb' => 'shortlinkspro_clicks_cleanup_button', ), 'clicks_cleanup_90' => array( 'name' => __( 'Delete clicks older than 90 days', 'shortlinkspro' ), 'desc' => _... ); -
apply_filters( 'shortlinkspro_countries', array( 'AF' => __( 'Afghanistan', 'shortlinkspro' ), 'AX' => __( 'Åland Islands', 'shortlinkspro' ), 'AL' => __( 'Albania', 'shortlinkspro' ), 'DZ' => __( 'Algeria', 'shortlinkspro' ), 'AS' => __( 'American Samoa', 'shortlinkspro' ), 'AD' => __( 'Andorra', 'shortlinkspro' ), 'AO' => __( 'Angola', 'shortlinkspro' ), 'AI' => __( 'Anguilla', 'shortlinkspro' ), 'AQ' => __( 'Antarctica', 'short... ); -
apply_filters( 'shortlinkspro_general_settings_fields', array( 'minimum_role' => array( 'name' => __( 'Minimum Access Role', 'shortlinkspro' ), 'type' => 'select', 'options' => shortlinkspro_get_allowed_manager_capabilities(), 'tooltip' => __( 'Minimum role a user needs to access to ShortLinks Pro management areas.', 'shortlinkspro' ), 'label_cb' => 'cmb_tooltip_label_cb', ), 'admin_bar' => array( 'name' => __( 'Enable Admin Bar', 'shortlinkspro' ),... ); -
apply_filters( 'shortlinkspro_geolocation_request_data', $data, $ip, $provider, $content, $response ); -
apply_filters( 'shortlinkspro_get_client_ip', $ip ); -
apply_filters( 'shortlinkspro_import_from_plugin_plugins', array() ); -
apply_filters( 'shortlinkspro_import_from_plugin_tools_fields', array( 'import_from_plugin' => array( 'name' => __( 'Import From', 'shortlinkspro' ), 'desc' => __( 'It is not necessary for the plugin to be active, ShortLinks Pro will import the data from the database directly.', 'shortlinkspro' ), 'type' => 'radio', 'classes' => 'cmb2-switch', 'options' => $options, 'tooltip' => __( 'Choose the plugin you want to import from. ', 'shortlinkspro' ), 'label_cb... ); -
do_action( 'shortlinkspro_init' ); -
apply_filters( 'shortlinkspro_languages_directory', $lang_dir ); -
apply_filters( 'shortlinkspro_link_defaults_settings_fields', array( 'redirect_type' => array( 'name' => __( 'Redirect Type', 'shortlinkspro' ), 'type' => 'select', 'options' => shortlinkspro_redirect_types(), 'tooltip' => __( 'Set the default redirect type to new links.', 'shortlinkspro' ), 'label_cb' => 'cmb_tooltip_label_cb', ), 'link_options' => array( 'name' => __( 'Link Options', 'shortlinkspro' ), 'type' => 'multicheck_inline', 'classes' => 'cmb2-s... ); -
do_action( 'shortlinkspro_post_init' ); -
do_action( 'shortlinkspro_pre_init' ); -
apply_filters( 'shortlinkspro_redirect_types', array( '307' => '307 (Temporary)', '302' => '302 (Temporary)', '301' => '301 (Permanent)', ) ); -
apply_filters( 'shortlinkspro_settings_sections', $shortlinkspro_settings_sections ); -
apply_filters( 'shortlinkspro_tools_sections', $shortlinkspro_tools_sections ); -
do_action( "update_{$ct_table->name}_meta", $meta_id, $object_id, $meta_key, $_meta_value ); -
apply_filters( "update_{$ct_table->name}_metadata", $check, $object_id, $meta_key, $meta_value, $prev_value ); -
do_action( "updated_{$ct_table->name}_meta", $meta_id, $object_id, $meta_key, $_meta_value );
Generated from ShortLinks Pro's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: