CBX Bookmark & Favorite 2.0.10 has 73 actions and 70 filters, read directly from its source code on Nov 18, 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 CBX Bookmark & Favorite fires an action
add_action( 'cbxbookmark_category_edit', function( $log_id, $category_info, $cat_name ) {
// Your code runs here.
}, 10, 3 );
// Change a value CBX Bookmark & Favorite is about to use
add_filter( 'cbxwpbookmark_auto_integration', function( $auto_integration_ok, $post_id, $post_type, $showcount, $skip_ids, $skip_roles ) {
// Change $auto_integration_ok here.
return $auto_integration_ok;
}, 10, 6 );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
-
do_action( 'cbxbookmark_category_edit', $log_id, $category_info['user_id'], $cat_name ); -
do_action( 'cbxbookmark_category_added', $log_id, $user_id, $cat_name ); -
do_action( 'cbxbookmark_bookmark_removed', $bookmark_id, $user_id, $object_id, $object_type ); -
apply_filters( 'cbxwpbookmark_auto_integration', $auto_integration_ok, $post_id, $post_type, $showcount, $skip_ids, $skip_roles ); -
apply_filters( 'cbxwpbookmark_elementor_shortcode_builder_attr', $attr, $settings, 'cbxwpbookmarkbtn' ); -
do_action( 'cbxbookmark_bookmark_removed_before', $bookmark_id, $bookmark['user_id'], $object_id, $object_type ); -
apply_filters( 'cbxwpbookmark_post_types', $post_type_args ); -
apply_filters( 'cbxwpbookmark_widget_shortcode_builder_attr', $attr, $instance, 'cbxwpbookmark-mycat' ); -
apply_filters( 'widget_title', empty( $instance['title'] ) ? $default_title : $instance['title'], $instance, $this->id_base ); -
do_action( 'cbxbookmark_category_deleted', $cat_id, $user_id ); -
do_action( 'cbxbookmark_category_deleted_before', $cat_id, $user_id ); -
do_action( 'cbxbookmark_show_btn' ); -
do_action( 'cbxwpbookmark_before_category_create', $postData ); -
do_action( 'cbxwpbookmark_before_category_update', $postData ); -
do_action( 'cbxwpbookmark_before_vuejs_mount_after', 'category-list' ); -
do_action( 'cbxwpbookmark_before_vuejs_mount_before', 'category-list' ); -
apply_filters( 'cbxwpbookmark_bookmark_label_text', $bookmark_text, $bookmarked_by_user, $object_id, $object_type ); -
apply_filters( 'cbxwpbookmark_bookmark_listing_data', $bookmarks ); -
apply_filters( 'cbxwpbookmark_can_user_create_own_category', true, $user_id ); -
do_action( 'cbxwpbookmark_category_created', $savedCategory, 'backend' ); -
apply_filters( 'cbxwpbookmark_category_posted_data', $postData ); -
apply_filters( 'cbxwpbookmark_create_pages', [ 'mybookmark_pageid' => [ 'slug' => _x( 'mybookmarks', 'Page slug', 'cbxwpbookmark' ), 'title' => _x( 'My Bookmarks', 'Page title', 'cbxwpbookmark' ), 'content' => '[cbxwpbookmark-mycat][cbxwpbookmark]', ], 'user_dashboard_page' => [ 'slug' => _x( 'user-bookmark-dashboard', 'Page slug', 'cbxwpbookmark' ), 'title' => _x( 'User Bookmark Dashboard', 'Page title', 'cbxwpbookmark' ), 'content' => '... ); -
do_action( 'cbxwpbookmark_css_end' ); -
do_action( 'cbxwpbookmark_css_start' ); -
apply_filters( 'cbxwpbookmark_dashboard_listing_editlink', 'admin', $edit_link, $object_id, $object_type, $open_newtab ); -
do_action( 'cbxwpbookmark_delete_failed', $bookmark_id, $user_id, $object_id, $object_type, $category_id ); -
do_action( 'cbxwpbookmark_on_activation' ); -
do_action( 'cbxwpbookmark_plugin_option_delete_after', $option ); -
do_action( 'cbxwpbookmark_plugin_option_delete_before', $option ); -
do_action( 'cbxwpbookmark_plugin_options_deleted' ); -
do_action( 'cbxwpbookmark_plugin_options_deleted_after' ); -
do_action( 'cbxwpbookmark_plugin_options_deleted_before' ); -
do_action( 'cbxwpbookmark_plugin_reset' ); -
do_action( 'cbxwpbookmark_plugin_reset_after' ); -
do_action( 'cbxwpbookmark_plugin_reset_before' ); -
do_action( 'cbxwpbookmark_plugin_tables_delete_before', $table_names ); -
do_action( 'cbxwpbookmark_plugin_tables_deleted_after', $table_names ); -
apply_filters( 'cbxwpbookmark_sublist_perpage', 10 ); -
do_action( 'cbxwpbookmark_wpheading_wrap_after', 'settings' ); -
do_action( 'cbxwpbookmark_wpheading_wrap_before', 'settings' ); -
do_action( 'cbxwpbookmark_wpheading_wrap_left_after', 'settings' ); -
do_action( 'cbxwpbookmark_wpheading_wrap_left_before', 'settings' ); -
do_action( 'cbxwpbookmark_wpheading_wrap_right_after', 'settings' ); -
do_action( 'cbxwpbookmark_wpheading_wrap_right_before', 'settings' ); -
do_action_deprecated( 'show_cbxbookmark_btn', [], '3.2.0', 'cbxbookmark_show_btn', 'The hook show_cbxbookmark_btn is deprecated. Use cbxbookmark_show_btn instead.' ); -
do_action( 'cbxbookmark_bookmark_added', $bookmark_id, $user_id, $object_id, $object_type, $category_privacy ); -
apply_filters( 'cbxwpbookmark_admin_page_slugs', $slugs ); -
do_action( 'cbxwpbookmark_after_template_part', $template_name, $template_path, $located, $args ); -
apply_filters( 'cbxwpbookmark_all_caps', $all_caps ); -
apply_filters( 'cbxwpbookmark_all_thumbnail_sizes', $image_sizes ); -
apply_filters( 'cbxwpbookmark_all_thumbnail_sizes_formatted', $image_sizes_arr ); -
apply_filters( 'cbxwpbookmark_allowed_object_types_helper', $allowed_object_types ); -
do_action( 'cbxwpbookmark_before_template_part', $template_name, $template_path, $located, $args ); -
do_action( 'cbxwpbookmark_bookmarkmost_not_found_end' ); -
do_action( 'cbxwpbookmark_bookmarkmost_not_found_start' ); -
do_action( 'cbxwpbookmark_bookmarkmost_single_item_end', $object_id, $item ); -
do_action( 'cbxwpbookmark_bookmarkmost_single_item_start', $object_id, $item ); -
do_action( 'cbxwpbookmark_bookmarkpost_not_found_end' ); -
do_action( 'cbxwpbookmark_bookmarkpost_not_found_start' ); -
do_action( 'cbxwpbookmark_bookmarkpost_single_item_end', $object_id, $item ); -
do_action( 'cbxwpbookmark_bookmarkpost_single_item_start', $object_id, $item ); -
apply_filters( 'cbxwpbookmark_bookmarks_listing_screen_option_columns', array_merge_recursive( $columns, $new_columns ) ); -
apply_filters( 'cbxwpbookmark_btn_block_attributes', [ 'show_count' => [ 'type' => 'boolean', 'default' => true, ], ] ); -
apply_filters( 'cbxwpbookmark_btn_block_js_vars', [ 'block_title' => esc_html__( 'CBX Bookmark Button', 'cbxwpbookmark' ), 'block_category' => 'cbxwpbookmark', 'block_icon' => 'universal-access-alt', 'general_settings' => [ 'title' => esc_html__( 'Block Settings', 'cbxwpbookmark' ), 'show_count' => esc_html__( 'Show Count', 'cbxwpbookmark' ), ], ] ); -
apply_filters( 'cbxwpbookmark_category_caps', $caps ); -
apply_filters( 'cbxwpbookmark_category_listing_screen_option_columns', array_merge_recursive($columns, $new_columns ) ); -
apply_filters( 'cbxwpbookmark_category_translation', $js_translations ); -
apply_filters( 'cbxwpbookmark_cats_by_user_order', $cats_by_user_order ); -
apply_filters( 'cbxwpbookmark_cats_by_user_orderby', $cats_by_user_orderby ); -
apply_filters( 'cbxwpbookmark_customizer_default_values', $customizer_default ); -
apply_filters( 'cbxwpbookmark_customizer_js_vars', [ 'please_select' => esc_html__( 'Please Select', 'cbxwpbookmark' ), 'please_select_shortcode' => esc_html__( 'Please Select Shortcodes', 'cbxwpbookmark' ), 'upload_title' => esc_html__( 'Window Title', 'cbxwpbookmark' ), ] ); -
do_action( 'cbxwpbookmark_customizer_shortcode_controls', $wp_customize, $this ); -
apply_filters( 'cbxwpbookmark_customizer_shortcodes_choices', [ 'cbxwpbookmark-mycat' => esc_html__( 'Bookmark Categories', 'cbxwpbookmark' ), 'cbxwpbookmark' => esc_html__( 'Bookmark List', 'cbxwpbookmark' ), ] ); -
apply_filters( 'cbxwpbookmark_customizer_strip_shortcodes', $content ); -
apply_filters( 'cbxwpbookmark_dashboard_js_translation', $js_translations ); -
apply_filters( 'cbxwpbookmark_database_connection_params', $connection_params ); -
apply_filters( 'cbxwpbookmark_get_author_url', $value ); -
apply_filters( 'cbxwpbookmark_get_template', $located, $template_name, $args, $template_path, $default_path ); -
apply_filters( "cbxwpbookmark_global_{$section['id']}_fields", $fields[ $section['id'] ] ); -
apply_filters( 'cbxwpbookmark_global_fields', $settings_fields ); -
apply_filters( 'cbxwpbookmark_guest_login_forms', $forms ); -
apply_filters( 'cbxwpbookmark_icon_path', $directory ); -
do_action( 'cbxwpbookmark_item_othertype', $item, $instance, $settings, $action_html, $sub_item_class ); -
do_action( 'cbxwpbookmark_js_before_cbxwpbookmarkpublicjs' ); -
do_action( 'cbxwpbookmark_js_end' ); -
do_action( 'cbxwpbookmark_js_start' ); -
apply_filters( 'cbxwpbookmark_js_translation', $js_translations ); -
apply_filters( 'cbxwpbookmark_locate_template', $template, $template_name, $template_path ); -
apply_filters( 'cbxwpbookmark_log_caps', $caps ); -
apply_filters( 'cbxwpbookmark_login_html', $cbxwpbookmark_guest_login_html, $cbxwpbookmark_login_url, $cbxwpbookmark_redirect_url ); -
do_action( 'cbxwpbookmark_manual_migration_run_after' ); -
apply_filters( 'cbxwpbookmark_migration_files', $migration_files ); -
apply_filters( 'cbxwpbookmark_migration_files_left', $migration_files_left ); -
do_action( 'cbxwpbookmark_migration_run_end' ); -
do_action( 'cbxwpbookmark_migration_run_start' ); -
apply_filters( 'cbxwpbookmark_most_block_attributes', [ 'title' => [ 'type' => 'string', 'default' => esc_html__( 'Most Bookmarked Posts', 'cbxwpbookmark' ), ], 'order' => [ 'type' => 'string', 'default' => 'DESC', ], 'orderby' => [ 'type' => 'string', 'default' => 'object_count', ], 'type' => [ 'type' => 'array', 'default' => [], 'items' => [ 'type' => 'string', ], ], 'limit' => [ 'type' => 'integer', 'default' => 10, ], 'daytime' => [ 'type' => ... ); -
apply_filters( 'cbxwpbookmark_most_block_js_vars', [ 'block_title' => esc_html__( 'CBX Most Bookmarked Posts', 'cbxwpbookmark' ), 'block_category' => 'cbxwpbookmark', 'block_icon' => 'universal-access-alt', 'general_settings' => [ 'heading' => esc_html__( 'Block Settings', 'cbxwpbookmark' ), 'title' => esc_html__( 'Title', 'cbxwpbookmark' ), 'title_desc' => esc_html__( 'Leave empty to hide', 'cbxwpbookmark' ), 'order' => esc_html__( 'Order', 'c... ); -
do_action( 'cbxwpbookmark_mostitem_othertype', $item, array_merge( $instance, $attr ), $settings, esc_attr( $li_class ), $show_count_html ); -
apply_filters( 'cbxwpbookmark_mybookmark_page_url', $value ); -
apply_filters( 'cbxwpbookmark_mycat_block_attributes', [ 'title' => [ 'type' => 'string', 'default' => esc_html__( 'Bookmark Categories', 'cbxwpbookmark' ), ], 'order' => [ 'type' => 'string', 'default' => 'ASC', ], 'orderby' => [ 'type' => 'string', 'default' => 'cat_name', ], 'display' => [ 'type' => 'integer', 'default' => 0, ], 'privacy' => [ 'type' => 'integer', 'default' => 2, ], 'show_count' => [ 'type' => 'boolean', 'default' => false, ], '... ); -
apply_filters( 'cbxwpbookmark_mycat_block_js_vars', [ 'block_title' => esc_html__( 'CBX Bookmark Categories', 'cbxwpbookmark' ), 'block_category' => 'cbxwpbookmark', 'block_icon' => 'universal-access-alt', 'general_settings' => [ 'heading' => esc_html__( 'Block Settings', 'cbxwpbookmark' ), 'title' => esc_html__( 'Title', 'cbxwpbookmark' ), 'title_desc' => esc_html__( 'Leave empty to hide', 'cbxwpbookmark' ), 'order' => esc_html__( 'Order', 'cbx... ); -
do_action( 'cbxwpbookmark_on_deactivation' ); -
apply_filters( 'cbxwpbookmark_option_names', $option_names ); -
do_action( 'cbxwpbookmark_othertype_item', $instance, $item, $action_html, $sub_item_class ); -
do_action( 'cbxwpbookmark_plugin_option_delete' ); -
do_action( 'cbxwpbookmark_plugin_tables_deleted' ); -
do_action( 'cbxwpbookmark_plugin_uninstall' ); -
do_action( 'cbxwpbookmark_plugin_uninstall_after' ); -
do_action( 'cbxwpbookmark_plugin_uninstall_before' ); -
apply_filters( 'cbxwpbookmark_post_block_attributes', [ 'title' => [ 'type' => 'string', 'default' => esc_html__( 'All Bookmarks', 'cbxwpbookmark' ), ], 'order' => [ 'type' => 'string', 'default' => 'DESC', ], 'orderby' => [ 'type' => 'string', 'default' => 'id', ], 'type' => [ 'type' => 'array', 'default' => [], 'items' => [ 'type' => 'string', ], ], 'catid' => [ 'type' => 'string', 'default' => '', ], 'limit' => [ 'type' => 'integer', 'default' ... ); -
apply_filters( 'cbxwpbookmark_post_block_js_vars', [ 'block_title' => esc_html__( 'CBX My Bookmarked Posts', 'cbxwpbookmark' ), 'block_category' => 'cbxwpbookmark', 'block_icon' => 'universal-access-alt', 'general_settings' => [ 'heading' => esc_html__( 'Block Settings', 'cbxwpbookmark' ), 'title' => esc_html__( 'Title', 'cbxwpbookmark' ), 'title_desc' => esc_html__( 'Leave empty to hide', 'cbxwpbookmark' ), 'order' => esc_html__( 'Order', 'cbx... ); -
apply_filters( 'cbxwpbookmark_public_jsvar', $cbxwpbookmark_translation ); -
apply_filters( 'cbxwpbookmark_register_html', $cbxwpbookmark_guest_register_html, $cbxwpbookmark_redirect_url ); -
apply_filters( 'cbxwpbookmark_rest_routes', $routes, $blog_id ); -
do_action( "cbxwpbookmark_setting_form_bottom_{$form['id']}", $form ); -
do_action( 'cbxwpbookmark_setting_form_end', $form ); -
do_action( 'cbxwpbookmark_setting_form_start', $form ); -
do_action( "cbxwpbookmark_setting_form_top_{$form['id']}", $form ); -
do_action( 'cbxwpbookmark_setting_group_actions_end' ); -
do_action( 'cbxwpbookmark_setting_group_actions_start' ); -
apply_filters( 'cbxwpbookmark_setting_sections', [ [ 'id' => 'cbxwpbookmark_basics', 'title' => esc_html__( 'General Settings', 'cbxwpbookmark' ), ] ] ); -
do_action( 'cbxwpbookmark_setting_submit_buttons_end', $form['id'] ); -
do_action( 'cbxwpbookmark_setting_submit_buttons_start', $form['id'] ); -
apply_filters( 'cbxwpbookmark_setting_vars', $translation_placeholder ); -
do_action( 'cbxwpbookmark_settings_form_after', 'settings' ); -
do_action( 'cbxwpbookmark_settings_form_before', 'settings' ); -
do_action( 'cbxwpbookmark_settings_form_end', 'settings' ); -
do_action( 'cbxwpbookmark_settings_form_start', 'settings' ); -
apply_filters( 'cbxwpbookmark_svg_file_path', $file_path, $svg_name ); -
apply_filters( 'cbxwpbookmark_table_list', $table_names ); -
apply_filters( 'cbxwpbookmark_template_path', 'cbxwpbookmark/' ); -
apply_filters( 'cbxwpbookmark_themes', $themes ); -
apply_filters( 'cbxwpbookmark_tools_js_translation', $js_translations ); -
apply_filters( 'cbxwpbookmark_user_bookmark_allow', $gate, $user_id, $user_bookmarks_count ); -
apply_filters( 'cbxwpbookmark_user_cats_found', $cats_by_user, $user_id, $object_id, $object_type ); -
apply_filters( 'cbxwpbookmark_userroles', $userRoles, $plain, $include_guest ); -
apply_filters( 'cbxwpbookmarks_icon_path', $directory ); -
apply_filters_deprecated( 'cbxwpbookmarks_mybookmark_page_url', [ $value ], '2.0.0', 'cbxwpbookmark_mybookmark_page_url', 'The filter cbxwpbookmarks_mybookmark_page_url is deprecated. Use cbxwpbookmark_mybookmark_page_url instead.' ); -
apply_filters( 'cbxwpbookmarks_post_types_assoc', $assoc_list ); -
apply_filters( 'cbxwpbookmarks_svg_file_path', $file_path, $svg_name ); -
do_action( 'doing_it_wrong_run', $function, $message, $version ); -
apply_filters_deprecated( 'get_author_cbxwpbookmarks_url', [ $value ], '2.0.0', 'cbxwpbookmark_get_author_url', 'The filter get_author_cbxwpbookmarks_url is deprecated. Use cbxwpbookmark_get_author_url instead.' );
Generated from CBX Bookmark & Favorite'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: