CBX Poll 2.0.5 has 62 actions and 100 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 Poll fires an action
add_action( 'cbxpoll_vote_delete_after', function( $log_info ) {
// Your code runs here.
}, 10, 1 );
// Change a value CBX Poll is about to use
add_filter( 'cbxpoll_email_footer_text', function( $footer_text ) {
// Change $footer_text here.
return $footer_text;
}, 10, 1 );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
-
/** * Fires after a poll vote has been deleted. */ do_action( 'cbxpoll_vote_delete_after', $log_info ); -
/** * Fires before a poll vote is deleted. */ do_action( 'cbxpoll_vote_delete_before', $log_info ); -
/** * Provides an opportunity to inspect and modify additional content for the * email. */ apply_filters( "cbxpoll_email_additional_content_{$this->id}", $this->format_string( $this->get_option( 'additional_content' ) ), $this->object, $this ); -
/** * Filter for main find/replace. */ apply_filters( 'cbxpoll_email_format_string', str_replace( $find, $replace, $string ), $this ); -
/** * Action hook fired when an email is sent. */ do_action( 'cbxpoll_email_sent', $return, $this->id, $this ); -
/** * Provides an opportunity to filter the CSS styles included in e-mails. */ apply_filters( 'cbxpoll_email_styles', $css, $this ); -
do_action( 'cbxpoll_wpheading_wrap_left_before', 'email_manager' ); -
do_action( 'cbxpoll_wpheading_wrap_after', 'email_manager' ); -
do_action( 'cbxpoll_wpheading_wrap_before', 'email_manager' ); -
do_action( 'cbxpoll_wpheading_wrap_right_after', 'email_manager' ); -
do_action( 'cbxpoll_wpheading_wrap_right_before', 'email_manager' ); -
apply_filters( 'cbxpoll_is_user_voted', $count ); -
do_action( 'cbxpoll_plugin_option_delete_after', $option ); -
do_action( 'cbxpoll_plugin_option_delete_before', $option ); -
do_action( 'cbxpoll_plugin_options_deleted' ); -
do_action( 'cbxpoll_plugin_options_deleted_after' ); -
do_action( 'cbxpoll_plugin_options_deleted_before' ); -
do_action( 'cbxpoll_plugin_tables_delete_before', $table_names ); -
do_action( 'cbxpoll_plugin_tables_deleted' ); -
do_action( 'cbxpoll_plugin_tables_deleted_after', $table_names ); -
apply_filters( 'cbxpoll_status_by_value', $states ); -
do_action( 'cbxpolladmin_custom_script', 'listing' ); -
do_action( 'cbxpolladmin_custom_style', 'listing' ); -
apply_filters( 'cbxpoll_admin_listing_votes', $total_votes, $post_id ); -
do_action( 'cbxpoll_after_template_part', $template_name, $template_path, $located, $args ); -
apply_filters( 'cbxpoll_allowed_html_tags', $allowed_html_tags ); -
apply_filters( 'cbxpoll_answer_extra_fields', $answer_fields_html_extra, $index, $answers_extra, $is_voted, $poll_id ); -
apply_filters( 'cbxpoll_answer_extra_fields_end', '', $index, $answers_extra, $is_voted, $poll_id ); -
apply_filters( 'cbxpoll_answer_extra_fields_start', '', $index, $answers_extra, $is_voted, $poll_id ); -
do_action( 'cbxpoll_answer_html_after', $poll_id, $reference, $poll_result ); -
do_action( 'cbxpoll_answer_html_after_question', $poll_id, $reference, $poll_result ); -
do_action( 'cbxpoll_answer_html_before', $poll_id, $reference, $poll_result ); -
do_action( 'cbxpoll_answer_html_before_question', $poll_id, $reference, $poll_result ); -
do_action( 'cbxpoll_before_template_part', $template_name, $template_path, $located, $args ); -
apply_filters( 'cbxpoll_category_slug', $cat_slug_default ); -
apply_filters( 'cbxpoll_common_js_vars', [ 'ajaxurl' => admin_url('admin-ajax.php'), 'ajax_fail' => esc_html__('Request failed, please reload the page.', 'cbxpoll'), 'nonce' => wp_create_nonce('cbxpollnonce'), 'is_user_logged_in' => is_user_logged_in() ? 1 : 0, 'please_select' => esc_html__('Please Select', 'cbxpoll'), 'upload_title' => esc_html__('Window Title', 'cbxpoll'), 'copycmds' => [ 'copy' => esc_html__('Copy', 'cbxpoll'), 'co... ); -
do_action( 'cbxpoll_custom_script' ); -
do_action( 'cbxpoll_custom_style' ); -
apply_filters( 'cbxpoll_description', $poll_content, $post_id ); -
apply_filters( 'cbxpoll_display_options', $methods ); -
apply_filters( 'cbxpoll_edit_css_deps', [ 'awesome-notifications', 'select2', 'pickr', 'flatpickr', 'flatpickr', 'jquery-ui', 'cbxpoll-admin' ] ); -
apply_filters( 'cbxpoll_edit_js_deps', [ 'cbxpoll-jseventmanager', 'awesome-notifications', 'flatpickr', 'pickr', 'select2', 'jquery' ] ); -
apply_filters( 'cbxpoll_edit_js_vars', $common_js_vars ); -
do_action( 'cbxpoll_email', $this ); -
apply_filters( 'cbxpoll_email_attachments', [], $this->id, $this->object, $this ); -
apply_filters( "cbxpoll_email_bcc_{$this->id}", $this->get_option( 'bcc', '' ), $this->object, $this ); -
apply_filters( "cbxpoll_email_cc_{$this->id}", $this->get_option( 'cc', '' ), $this->object, $this ); -
apply_filters( 'cbxpoll_email_classes', $this->emails ); -
apply_filters( 'cbxpoll_email_content_type', $content_type, $this, $default_content_type ); -
apply_filters( 'cbxpoll_email_description', $this->description, $this ); -
apply_filters( "cbxpoll_email_enabled_{$this->id}", 'yes' === $this->enabled, $this->object, $this ); -
apply_filters( "cbxpoll_email_form_fields_{$this->id}", array_map( [ $this, 'set_defaults' ], $this->form_fields ) ); -
apply_filters( "cbxpoll_email_from_email_{$this->id}", $this->get_option( 'from_email', '' ), $this->object, $this, $from_email ); -
apply_filters( "cbxpoll_email_from_name_{$this->id}", trim( $this->get_option( 'from_name', '' ) ), $this->object, $this, $from_name ); -
do_action( 'cbxpoll_email_header', $email_heading, null ); -
apply_filters( 'cbxpoll_email_headers', $header, $this->id, $this->object, $this ); -
apply_filters( "cbxpoll_email_heading_{$this->id}", $this->format_string( $this->get_option( 'heading', $this->get_default_heading() ) ), $this->object, $this ); -
do_action( 'cbxpoll_email_manager_after', 'email_manager' ); -
do_action( 'cbxpoll_email_manager_before' ); -
do_action( 'cbxpoll_email_manager_end', 'email_manager' ); -
do_action( 'cbxpoll_email_manager_start', 'email_manager' ); -
apply_filters( "cbxpoll_email_recipient_{$this->id}", $this->recipient, $this->object, $this ); -
apply_filters( "cbxpoll_email_replyto_{$this->id}", $this->get_option( 'replyto', '' ), $this->object, $this ); -
apply_filters( "cbxpoll_email_subject_{$this->id}", $this->format_string( $this->get_option( 'subject', $this->get_default_subject() ) ), $this->object, $this ); -
apply_filters( 'cbxpoll_email_templates', $email_templates ); -
apply_filters( 'cbxpoll_email_title', $this->title, $this ); -
do_action( 'cbxpoll_emogrifier', $css_inliner, $this ); -
apply_filters( 'cbxpoll_fields', $post_meta_fields ); -
apply_filters( 'cbxpoll_form_answer_end', $poll_form_html, $post_id ); -
apply_filters( 'cbxpoll_form_answer_list_style_class', $poll_answer_list_class, $post_id ); -
apply_filters( 'cbxpoll_form_answer_listitem_attr', $extra_list_attr, $post_id, $index, $answer, $poll_answers_extra_single ); -
apply_filters( 'cbxpoll_form_answer_listitem_inside_html_end', $form_answer_listitem_inside_html_end, $post_id, $index, $answer, $poll_answers_extra_single ); -
apply_filters( 'cbxpoll_form_answer_listitem_inside_html_start', $form_answer_listitem_inside_html_start, $post_id, $index, $answer, $poll_answers_extra_single ); -
apply_filters( 'cbxpoll_form_answer_listitem_label_extra', $form_answer_listitem_label_extra, $post_id, $index, $answer, $poll_answers_extra_single ); -
apply_filters( 'cbxpoll_form_answer_listitem_style', $extra_list_style, $post_id, $index, $answer, $poll_answers_extra_single ); -
apply_filters( 'cbxpoll_form_answer_listitem_style_class', $poll_answer_listitem_class, $post_id, $index, $answer, $poll_answers_extra_single ); -
apply_filters( 'cbxpoll_form_answer_start', $poll_form_html, $post_id ); -
apply_filters( 'cbxpoll_form_extra_process', $insertArray, $poll_id ); -
apply_filters( 'cbxpoll_form_html', $poll_form_html, $post_id ); -
apply_filters( 'cbxpoll_form_html_after', $poll_form_html, $post_id ); -
apply_filters( 'cbxpoll_form_html_after_question', $poll_form_html, $post_id ); -
apply_filters( 'cbxpoll_form_html_before', $poll_form_html, $post_id ); -
apply_filters( 'cbxpoll_form_html_before_question', $poll_form_html, $post_id ); -
apply_filters( 'cbxpoll_form_listitem_answer_title', $answer, $post_id, $index, $poll_answers_extra_single ); -
do_action( 'cbxpoll_form_validation', $poll_result, $poll_id ); -
apply_filters( 'cbxpoll_get_template', $located, $template_name, $args, $template_path, $default_path ); -
apply_filters( "cbxpoll_global_{$section['id']}_fields", $fields[ $section['id'] ] ); -
apply_filters( 'cbxpoll_global_email_fields', [ 'email_template_heading' => [ 'name' => 'email_template_heading', 'label' => esc_html__( 'Poll Email Template', 'cbxpoll' ), 'type' => 'heading', 'default' => '', ], 'selected_template' => [ 'name' => 'selected_template', 'label' => esc_html__( 'Email Template', 'cbxpoll' ), 'type' => 'select', 'default' => 'tpl-general', 'options' => $email_templates, 'sanitize_callback' => 'sanitize_text_fi... ); -
apply_filters( 'cbxpoll_global_fields', $settings_fields ); -
apply_filters( 'cbxpoll_global_general_fields', [ 'tax_heading' => [ 'name' => 'tax_heading', 'label' => esc_html__( 'Taxonomy Settings', 'cbxpoll' ), 'type' => 'heading', 'default' => '', ], 'cat_enable' => [ 'name' => 'cat_enable', 'label' => esc_html__( 'Enable Category', 'cbxpoll' ), 'desc' => esc_html__( 'Enable/disable category taxonomy for poll. Category is hierarchical taxonomy.', 'cbxpoll' ), 'type' => 'checkbox', 'default' => 'on' ... ); -
apply_filters( 'cbxpoll_global_slugs_fields', [ 'slugs_heading' => [ 'name' => 'slugs_heading', 'label' => esc_html__( 'Poll Slugs and Urls', 'cbxpoll' ), 'type' => 'heading', 'default' => '', ], 'slugs_subheading' => [ 'name' => 'slugs_subheading', 'label' => sprintf( wp_kses( __( 'Please save <a target="_blank" href="%s">permalink</a> once after changing any slug.', 'cbxpoll' ), [ 'a' => [ 'href' => [], 'target' => [] ] ] ), esc_url( adm... ); -
apply_filters( 'cbxpoll_global_tools_fields', [ 'tools_heading' => [ 'name' => 'tools_heading', 'label' => esc_html__( 'Tools Settings', 'cbxpoll' ), 'type' => 'heading', 'default' => '', ], 'delete_global_config' => [ 'name' => 'delete_global_config', 'label' => esc_html__( 'On Uninstall delete plugin data', 'cbxpoll' ), 'desc' => '<p>' . esc_html__( 'Delete Global Config data and custom table created by this plugin on uninstall.', 'cbxpo... ); -
apply_filters( 'cbxpoll_guest_login_forms', $forms ); -
apply_filters( 'cbxpoll_icon_path', $directory ); -
apply_filters( 'cbxpoll_listing_css_deps', [ 'awesome-notifications', 'cbxpoll-admin' ] ); -
apply_filters( 'cbxpoll_listing_js_deps', [ 'cbxpoll-jseventmanager', 'awesome-notifications', 'jquery', 'jquery-ui-core', 'jquery-ui-sortable' ] ); -
apply_filters( 'cbxpoll_listing_js_vars', $common_js_vars ); -
apply_filters( 'cbxpoll_locate_template', $template, $template_name, $template_path ); -
apply_filters( 'cbxpoll_login_html', $guest_login_html, $login_url, $redirect_url ); -
apply_filters( 'cbxpoll_mail_callback', 'wp_mail', $this ); -
apply_filters( 'cbxpoll_mail_callback_params', [ $to, wp_specialchars_decode( $subject ), $message, $headers, $attachments ], $this ); -
apply_filters( 'cbxpoll_mail_content', $this->style_inline( $message ) ); -
do_action( 'cbxpoll_on_activation' ); -
do_action( 'cbxpoll_on_deactivation' ); -
do_action( 'cbxpoll_on_vote', $insertArray, $vote_id, $insertArray['published'] ); -
apply_filters( 'cbxpoll_option_names', $option_names ); -
apply_filters( 'cbxpoll_option_names_only', $names_only ); -
do_action( 'cbxpoll_plugin_reset' ); -
do_action( 'cbxpoll_plugin_reset_after' ); -
do_action( 'cbxpoll_plugin_reset_before' ); -
do_action( 'cbxpoll_plugin_tables_delete_after', $table_names ); -
do_action( 'cbxpoll_plugin_tables_deleted_before', $table_names ); -
do_action( 'cbxpoll_plugin_uninstall' ); -
do_action( 'cbxpoll_plugin_uninstall_before' ); -
apply_filters( 'cbxpoll_post_tax_category_args', $poll_cat_args ); -
apply_filters( 'cbxpoll_post_tax_category_labels', $poll_cat_labels ); -
apply_filters( 'cbxpoll_post_tax_tag_args', $poll_tag_args ); -
apply_filters( 'cbxpoll_post_tax_tag_labels', $poll_tag_labels ); -
apply_filters( 'cbxpoll_post_type_args', $args ); -
apply_filters( 'cbxpoll_post_type_supports', [ 'title', 'editor', 'author', 'thumbnail' ] ); -
apply_filters( 'cbxpoll_public_js_locales', $public_js_locales + $common_translations ); -
apply_filters( 'cbxpoll_register_html', $guest_register_html, $redirect_url ); -
apply_filters( 'cbxpoll_setting_admin_css_deps', [ 'select2', 'awesome-notifications', 'pickr', 'cbxpoll-admin' ] ); -
apply_filters( 'cbxpoll_setting_admin_js_deps', [ 'jquery', 'select2', 'pickr', 'awesome-notifications' ] ); -
do_action( "cbxpoll_setting_form_bottom_{$form['id']}", $form ); -
do_action( 'cbxpoll_setting_form_end', $form ); -
do_action( 'cbxpoll_setting_form_start', $form ); -
do_action( "cbxpoll_setting_form_top_{$form['id']}", $form ); -
do_action( 'cbxpoll_setting_group_actions_end' ); -
do_action( 'cbxpoll_setting_group_actions_start' ); -
apply_filters( 'cbxpoll_setting_js_vars', $common_js_vars ); -
apply_filters( 'cbxpoll_setting_sections', $sections ); -
do_action( 'cbxpoll_setting_submit_buttons_end', $form['id'] ); -
do_action( 'cbxpoll_setting_submit_buttons_start', $form['id'] ); -
do_action( 'cbxpoll_settings_form_after', 'settings' ); -
do_action( 'cbxpoll_settings_form_before', 'settings' ); -
do_action( 'cbxpoll_settings_form_end', 'settings' ); -
do_action( 'cbxpoll_settings_form_start', 'settings' ); -
apply_filters( 'cbxpoll_singlepoll_block_attributes', [ 'poll_id' => [ 'type' => 'integer', 'default' => 0, ], 'chart_type' => [ 'type' => 'string', 'default' => 'text' ], 'description' => [ 'type' => 'integer', 'default' => 1 ], 'grid' => [ 'type' => 'integer', 'default' => 0 ], ] ); -
apply_filters( 'cbxpoll_singlepoll_block_js_vars', [ 'block_title' => esc_html__( 'CBX Poll Single Block', 'cbxpoll' ), 'block_category' => 'codeboxr', 'block_icon' => 'universal-access-alt', 'general_settings' => [ 'heading' => esc_html__( 'CBXPoll Single Block Settings', 'cbxpoll' ), 'poll_id' => esc_html__( 'Poll', 'cbxpoll' ), 'poll_id_options' => $poll_id_options, 'chart_type' => esc_html__( 'Chart Type', 'cbxpoll' ), 'chart_type_options' ... ); -
apply_filters( 'cbxpoll_singlepoll_block_shortcode_builder_attr', $attr, $attributes ); -
apply_filters( 'cbxpoll_status_by_value_with_slug', $states ); -
apply_filters( 'cbxpoll_svg_file_path', $file_path, $svg_name ); -
apply_filters( 'cbxpoll_table_list', $table_names ); -
apply_filters( 'cbxpoll_tag_slug', $tag_slug_default ); -
apply_filters( 'cbxpoll_template_path', 'cbxpoll/' ); -
apply_filters( 'cbxpoll_userroles', $userRoles, $plain, $include_guest ); -
apply_filters( 'cbxpoll_vote_insert_format', $vote_insert_format ); -
apply_filters( 'cbxpoll_vote_status', $status, $poll_id ); -
apply_filters( 'cbxpoll_vote_status_all', [ '0' => esc_html__( 'Unpublished', 'cbxpoll' ), '1' => esc_html__( 'Published', 'cbxpoll' ), '2' => esc_html__( 'Spam', 'cbxpoll' ), '3' => esc_html__( 'Unverified', 'cbxpoll' ), ] ); -
do_action( 'cbxpoll_wpheading_wrap_left_after', 'settings' ); -
do_action( 'cbxpolladmin_add_answertype', $post_id, $new_index ); -
do_action( 'cbxpollsinglewidget_form_admin', $instance, $this ); -
apply_filters( 'cbxpollsinglewidget_update', $instance, $new_instance ); -
apply_filters( 'cbxpollsinglewidget_widget', $instance ); -
apply_filters( 'cbxpollsinglewidget_widget_form', $instance ); -
apply_filters( 'cbxpollsinglewidget_widget_form_fields', $fields ); -
do_action( 'deprecated_function_run', $function, $replacement, $version ); -
do_action( 'doing_it_wrong_run', $function, $message, $version ); -
apply_filters( 'widget_title', empty( $instance['title'] ) ? esc_html__( 'CBX Poll Single Widget', 'cbxpoll' ) : $instance['title'], $instance, $this->id_base );
Generated from CBX Poll'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: