WP Affiliate Disclosure 1.4.1 has 2 actions and 62 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 WP Affiliate Disclosure fires an action
add_action( 'wp_affiliate_disclosure_fs_loaded', function() {
// Your code runs here.
}, 10, 1 );
// Change a value WP Affiliate Disclosure is about to use
add_filter( 'wpadc_emit_legacy_wrapper_id', function( $value ) {
// Change $value here.
return $value;
}, 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
-
apply_filters( "{$this->_hook_prefix}sample_func", $output, $this ); -
apply_filters( "{$this->_hook_prefix}option_selected", ( $selected ? ' wpadcb-optselector-active' : '' ), $name, $value, $compare, $this ); -
apply_filters( "{$this->_hook_prefix}selected", $return, $name, $value, $compare, $this ); -
apply_filters( "{$this->_hook_prefix}sample_render", ( !empty( $html ) ? $html : '' ), $args, $this ); -
apply_filters( "{$this->_hook_prefix}update_settings", $output, $this ); -
apply_filters( "{$this->_hook_prefix}attributes", $attributes, $name, $this ); -
apply_filters( "{$this->_hook_prefix}create_new/error_msg", __( 'Please insert a name.' , WPADC_SLUG ) ); -
apply_filters( "{$this->_hook_prefix}get_disclosure_rules", $rules, $this ); -
apply_filters( "{$this->_hook_prefix}get_value", $return, $name, $value, $esc, $this ); -
apply_filters( "{$this->_hook_prefix}input_id", ( !empty( $name ) ? 'wpadcb-field-' . $name : '' ), $name, $this ); -
apply_filters( "{$this->_hook_prefix}input_name", ( !empty( $name ) ? 'wpadcb_item[' . $name . ']' : '' ), $name, $this ); -
apply_filters( "{$this->_hook_prefix}render_overview", ( !empty( $html ) ? $html : '' ), $args, $this ); -
apply_filters( "{$this->_hook_prefix}show_if", 'data-show-if="'.$this->input_id( $name ).'" data-show-if-value="'.$value.'" data-show-if-operator="'.$operator.'"', $name, $value, $operator, $this ); -
apply_filters( "{$this->_hook_prefix}add_new", $output, $this ); -
apply_filters( "{$this->_hook_prefix}add_new_wizard", ( !empty( $html ) ? $html : '' ), $this ); -
apply_filters( "{$this->_hook_prefix}args", wp_parse_args( $args, $defaults ), $args, $defaults ); -
do_action( "{$this->_hook_prefix}check_capability", true, $this ); -
apply_filters( "{$this->_hook_prefix}check_capability/error_msg", __( 'You do not have sufficient permissions to perform this action.' , WPADC_SLUG ), $this ); -
apply_filters( "{$this->_hook_prefix}create_new", $output, $id, $this ); -
apply_filters( "{$this->_hook_prefix}create_new/success_msg", ' <div class="wpadcb-addnew-container"> <h2 class="wpadcb-modal-headline">'.sprintf( __( '"%s" has been successfully created!' , WPADC_SLUG ) , get_the_title( $id ) ).'<span class="subheadline">'. __( 'Click the "Edit" button below to edit your item' , WPADC_SLUG ).'</span></h2> <div class="wpadcb-modal-actions"> <a href="#close" class="wpadcb-modal-cancel-btn wpadcb-close-modal">'.__( 'Close' ... ); -
apply_filters( "{$this->_hook_prefix}default_value", wpadcb_default_meta() ); -
apply_filters( "{$this->_hook_prefix}delete_confirmation", ( !empty( $html ) ? $html : '' ), $id, $this ); -
apply_filters( "{$this->_hook_prefix}delete_item", ( $status ? 'success' : 'error' ), $this ); -
apply_filters( "{$this->_hook_prefix}get_all_items", $items, $this ); -
apply_filters( "{$this->_hook_prefix}get_steps", array( 'step-1' => array( 'id' => 1, 'label' => esc_html__( 'Welcome', WPADC_SLUG ) ), 'step-2' => array( 'id' => 2, 'label' => esc_html__( 'Name Your Rule', WPADC_SLUG ) ), 'step-3' => array( 'id' => 3, 'label' => esc_html__( 'Disclosure Statement', WPADC_SLUG ) ), 'step-4' => array( 'id' => 4, 'label' => esc_html__( 'Select a Location', WPADC_SLUG ) ), 'step-5' => array( 'id' => 5, 'label' =>... ); -
apply_filters( "{$this->_hook_prefix}get_total_items", ( $items && !empty( $items ) ? count( $items ) : 0 ), $this ); -
apply_filters( "{$this->_hook_prefix}get_values", $values, $item_id, $this ); -
apply_filters( "{$this->_hook_prefix}modal_container", ( !empty( $html ) ? $html : '' ), $this ); -
apply_filters( "{$this->_hook_prefix}render", ( !empty( $html ) ? $html : '' ), $this ); -
apply_filters( "{$this->_hook_prefix}render_edit", ( !empty( $html ) ? $html : '' ), $args, $this ); -
apply_filters( "{$this->_hook_prefix}render_header", ( !empty( $html ) ? $html : '' ), $subtitle, $this ); -
apply_filters( "{$this->_hook_prefix}render_settings_page", ( !empty( $html ) ? $html : '' ), $this ); -
apply_filters( "{$this->_hook_prefix}render_shortcode", ( !empty( $html ) ? $html : '' ), $atts, $shortcode_tag, $this ); -
apply_filters( "{$this->_hook_prefix}render_statement", ( !empty( $html ) ? $html : '' ), $args, $this ); -
apply_filters( "{$this->_hook_prefix}render_upgrade_msg", ( !empty( $html ) ? $html : '' ), $args, $this ); -
apply_filters( "{$this->_hook_prefix}render_wizard", ( !empty( $html ) ? $html : '' ), $args, $this ); -
apply_filters( "{$this->_hook_prefix}render_wizard_message", ( !empty( $html ) ? $html : '' ), $args, $this ); -
apply_filters( "{$this->_hook_prefix}render_wizard_steps", ( !empty( $html ) ? $html : '' ), $args, $this ); -
apply_filters( "{$this->_hook_prefix}update_overview", $view->render_overview_table( array( 'items' => $items ) ) . ( !wpadcb_run_start_wizard() && $this->_model->get_total_items(1) < 1 ? $view->render_wizard_message() : '' ), $this ); -
apply_filters( "{$this->_hook_prefix}update_settings/error_msg", __( 'Something just went wrong! Please try again.' , WPADC_SLUG ), $id ); -
apply_filters( "{$this->_hook_prefix}update_settings/success_msg", ' <i class="fa fa-check-square-o"></i><span class="wpadcb-modal-msg">'.__( 'Settings Saved!' , WPADC_SLUG ).'</span>', WPADC_SLUG, $id ); -
apply_filters( "{$this->_hook_prefix}wizard_back", $view->render_wizard( array( 'current_step' => ( $new_step > 6 ? 6 : $new_step ), 'steps' => $this->_model->get_steps(), 'values' => wpadcb_get_start_wizard_data() ) ), $this ); -
apply_filters( "{$this->_hook_prefix}wizard_close", 'closed', $this ); -
apply_filters( "{$this->_hook_prefix}wizard_submit", $view->render_wizard( array( 'current_step' => ( $new_step > 6 ? 6 : $new_step ), 'steps' => $this->_model->get_steps(), 'values' => wpadcb_get_start_wizard_data() ) ), $this ); -
apply_filters( "{$this->plugin_hook()}backend_localize_args", array( 'stylePresets' => $style_presets, 'ajaxUrl' => admin_url( 'admin-ajax.php', ( is_ssl() ? 'https' : 'http' ) ), 'loadingModal' => ' <div class="wpadcb-modal-container"> <div class="wpadcb-modal-loading"> ' . wpadc_loader() . __( 'Loading...', WPADC_SLUG ) . ' </div> </div>', 'processingModal' => '<div class="wpadcb-modal-loading"><i class="fa fa-spinner fa-pulse"></i>' . __( 'Processing..... ); -
apply_filters( "{wpadc()->plugin_hook()}register_wpadc", array( 'labels' => array( 'name' => __( 'Affiliate Disclosure', WPADC_SLUG ), 'singular_name' => __( 'Affiliate Disclosure', WPADC_SLUG ), 'menu_name' => __( 'Affiliate Disclosure', WPADC_SLUG ), 'all_items' => __( 'Affiliate Disclosure', WPADC_SLUG ), 'add_new' => __( 'Add New Affiliate Disclosure', WPADC_SLUG ), 'add_new_item' => __( 'Add New Affiliate Disclosure', WPADC_SLUG ), 'edit_item' =... ); -
do_action( 'wp_affiliate_disclosure_fs_loaded' ); -
apply_filters( 'wpadc_emit_legacy_wrapper_id', true ); -
apply_filters( 'wpadc_get_fa_list', $icons ); -
apply_filters( 'wpadc_kses_it', $text_after, $text_before ); -
apply_filters( 'wpadc_loader', '<div class="wpadc-gloader"><svg class="circular" viewBox="25 25 50 50"><circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"/></svg></div>' ); -
apply_filters( 'wpadc_plugin_labels', array( 'wp-affiliate-disclosure' => __( 'WP Affiliate Disclosure', WPADC_SLUG ), ) ); -
apply_filters( 'wpadc_render_help_page', ( ! empty( $html ) ? $html : '' ) ); -
apply_filters( 'wpadcb_checkbox_meta', $checkboxes ); -
apply_filters( 'wpadcb_default_meta', $values ); -
apply_filters( 'wpadcb_get_meta', $return, $instance ); -
apply_filters( 'wpadcb_get_start_wizard_data', wp_parse_args( $wizard_data, $default_data ) ); -
apply_filters( 'wpadcb_numbers_meta', $numbers ); -
apply_filters( 'wpadcb_options_page_url', esc_url( $url ), $instance ); -
apply_filters( 'wpadcb_run_start_wizard', $run ); -
apply_filters( 'wpadcb_sample_func', ( !empty( $output ) ? $output : '' ) ); -
apply_filters( 'wpadcb_sanitize_meta_values', $values ); -
apply_filters( 'wpadcb_selectable_meta', $selectables ); -
apply_filters( 'wpadcb_start_wizard_default_data', array( 'current_step' => 1, 'wizard_status' => 'start', 'rule_name' => esc_html__( 'Affiliate Disclosure Statement', WPADC_SLUG ), 'disclosure_statement' => esc_html__( 'This post contains affiliate links.', WPADC_SLUG ), 'statement_position' => 'before-content', 'post_type' => 'post', 'condition' => 'none', 'ids' => '', 'taxonomies' => '', 'advanced_filter' => 'none', 'priority' => 1 ) );
Generated from WP Affiliate Disclosure'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: