AMP for WP 1.1.20 has 171 actions and 284 filters, read directly from its source code on Nov 17, 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 AMP for WP fires an action
add_action( 'redux/construct', function( $object ) {
// Your code runs here.
}, 10, 1 );
// Change a value AMP for WP is about to use
add_filter( 'active_plugins', function( $active_plugins ) {
// Change $active_plugins here.
return $active_plugins;
}, 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
-
/** * All in One SEO Plugin Conflict for stopping redirecting on amp query string */ apply_filters( 'active_plugins', get_option( 'active_plugins' ) ); -
/** * Filters the HTML output of individual page number links. */ apply_filters( 'ampforwp_framework_get_post_pagination_link', $link, $i ); -
/** * Filters the HTML output of individual page number links. */ apply_filters( 'ampforwp_post_pagination_link', $link, $i ); -
/** * action 'redux/options/{opt_name}/compiler/advanced' */ do_action( "redux/options/{$this->args['opt_name']}/compiler/advanced", $this ); -
/** * action 'redux-after-field-{opt_name}' */ do_action( "redux-after-field-{$this->args['opt_name']}", $field, $value ); -
/** * action 'redux-before-field-{opt_name}' */ do_action( "redux-before-field-{$this->args['opt_name']}", $field, $value ); -
/** * action 'redux-compiler-{opt_name}' */ do_action( "redux-compiler-{$this->args['opt_name']}", $this->options, $this->compilerCSS, $this->transients['changed_values'] ); -
/** * filter 'redux-font-icons-file}' */ apply_filters( 'redux-font-icons-file', $icons_file ); -
/** * Field class file filter 'redux/{opt_name}/field/class/{field.type} */ apply_filters( "redux/{$this->args['opt_name']}/field/class/{$field['type']}", self::$_dir . "inc/fields/{$field['type']}/field_{$field['type']}.php", $field ); -
/** * action 'redux/options/{opt_name}a' */ do_action( "redux/options/{$this->args['opt_name']}/compiler", $this->options, $this->compilerCSS, $this->transients['changed_values'] ); -
/** * action 'redux/options/{opt_name}/import' */ do_action( "redux/options/{$this->parent->args['opt_name']}/import", $this, $this->parent->transients['changed_values'] ); -
/** * Filter amp-consent JSON config for the built-in GDPR / GPC UI. */ apply_filters( 'ampforwp_amp_consent_config', $consent_config ); -
/** * Filters the HTML output of page links for paginated posts. */ apply_filters( 'ampforwp_framework_get_post_pagination', $output, $args ); -
/** * Filters the arguments used in retrieving page links for paginated posts. */ apply_filters( 'ampforwp_framework_get_post_pagination_args', $params ); -
/** * Filter whether AMP components should use data-block-on-consent. */ apply_filters( 'ampforwp_get_data_consent', $dboc ); -
/** * Filter the amp-consent checkConsentHref JSON response for GPC. */ apply_filters( 'ampforwp_gpc_check_consent_response', $response, $body, $matched_geo ); -
/** * Filter the contents of /.well-known/gpc.json. */ apply_filters( 'ampforwp_gpc_well_known_data', $data ); -
/** * Filter whether the current request has an active GPC signal. */ apply_filters( 'ampforwp_has_gpc_signal', $has_gpc ); -
/** * Filters the HTML output of page links for paginated posts. */ apply_filters( 'ampforwp_post_pagination', $output, $args ); -
/** * Filters the arguments used in retrieving page links for paginated posts. */ apply_filters( 'ampforwp_post_pagination_args', $params ); -
/** * action 'redux-admin-head-{opt_name}' */ do_action( "redux-admin-head-{$this->args['opt_name']}", $this ); -
/** * filter 'redux-changed-text-{opt_name}' */ apply_filters( "redux-changed-text-{$this->parent->args['opt_name']}", __( 'Settings have changed, you should save them!', 'accelerated-mobile-pages' ) ); -
/** * filter 'redux-defaults-section-text-{opt_name}' */ apply_filters( "redux-defaults-section-text-{$this->parent->args['opt_name']}", __( 'Section Defaults Restored!', 'accelerated-mobile-pages' ) ); -
/** * filter 'redux-defaults-text-{opt_name}' */ apply_filters( "redux-defaults-text-{$this->parent->args['opt_name']}", __( 'All Defaults Restored!', 'accelerated-mobile-pages' ) ); -
/** * action 'redux-enqueue-{opt_name}' */ do_action( "redux-enqueue-{$this->parent->args['opt_name']}", $this->parent ); -
/** * filter 'redux-extensionclass-load' */ apply_filters( 'redux-extensionclass-load', "$path/$folder/extension_{$folder}.php", $extension_class ); -
/** * filter 'redux-field-{field.id}modifier-{opt_name}' */ apply_filters( "redux-field-{$field['id']}modifier-{$this->args['opt_name']}", $field ); -
/** * filter 'redux-field-{opt_name}' */ apply_filters( "redux-field-{$this->args['opt_name']}", ob_get_contents(), $field ); -
/** * filter 'redux-font-icons' */ apply_filters( 'redux-font-icons', array() ); -
/** * filter 'redux-imported-text-{opt_name}' */ apply_filters( "redux-imported-text-{$this->parent->args['opt_name']}", __( 'Settings Imported!', 'accelerated-mobile-pages' ) ); -
/** * action 'redux-load-page-{opt_name}' */ do_action( "redux-load-page-{$this->args['opt_name']}", $screen ); -
/** * action 'redux-page-after-form-{opt_name}' */ do_action( "redux-page-after-form-{$this->parent->args['opt_name']}" ); -
/** * action 'redux-page-before-form-{opt_name}' */ do_action( "redux-page-before-form-{$this->parent->args['opt_name']}" ); -
/** * action 'redux-register-extensions-{opt_name}' */ do_action( "redux-register-extensions-{$this->args['opt_name']}", $this ); -
/** * action 'redux-register-settings-{opt_name}' */ do_action( "redux-register-settings-{$this->args['opt_name']}" ); -
/** * filter 'redux-saved-text-{opt_name}' */ apply_filters( "redux-saved-text-{$this->parent->args['opt_name']}", '<strong>'.__( 'Settings Saved!', 'accelerated-mobile-pages' ) ); -
/** * filter 'redux-section-{index}-modifier-{opt_name}' */ apply_filters( "redux-section-{$k}-modifier-{$this->args['opt_name']}", $section ); -
/** * filter 'redux-sections' */ apply_filters( 'redux-sections', $sections ); -
/** * filter 'redux-sections-{opt_name}' */ apply_filters( "redux-sections-{$this->args['opt_name']}", $this->sections ); -
/** * action 'redux-validate-{opt_name}' */ do_action_ref_array( "redux-validate-{$this->args['opt_name']}", array( &$plugin_options, $this->options ) ); -
/** * filter 'redux-validateclass-load' */ apply_filters( 'redux-validateclass-load', self::$_dir . "inc/validation/{$field['validate']}/validation_{$field['validate']}.php", $validate ); -
/** * filter 'redux/{opt_name}/field/font/icons' */ apply_filters( "redux/{$this->args['opt_name']}/field/font/icons", $font_icons ); -
redux/{$this->parent->args['opt_name']}/field/class/{$field['type']}
filter Copy link Customise this hook/** * Field class file filter 'redux/{opt_name}/field/class/{field.type} */ apply_filters( "redux/{$this->parent->args['opt_name']}/field/class/{$field['type']}", ReduxFramework::$_dir . "inc/fields/{$field['type']}/field_{$field['type']}.php", $field ); -
/** * filter 'redux/{opt_name}/field/font/icons/file' */ apply_filters( "redux/{$this->parent->args['opt_name']}/field/font/icons/file", $icons_file ); -
/** * Preset confirm string filter 'redux/{opt_name}/localize/preset */ apply_filters( "redux/{$this->parent->args['opt_name']}/localize/preset", __( 'Your current options will be replaced with the values of this preset. Would you like to proceed?', 'accelerated-mobile-pages' ) ); -
/** * Reset all string filter 'redux/{opt_name}/localize/reset */ apply_filters( "redux/{$this->parent->args['opt_name']}/localize/reset", __( 'Are you sure? Resetting will lose all custom values.', 'accelerated-mobile-pages' ) ); -
/** * Reset section string filter 'redux/{opt_name}/localize/reset_section */ apply_filters( "redux/{$this->parent->args['opt_name']}/localize/reset_section", __( 'Are you sure? Resetting will lose all custom values in this section.', 'accelerated-mobile-pages' ) ); -
/** * Save pending string filter 'redux/{opt_name}/localize/save_pending */ apply_filters( "redux/{$this->parent->args['opt_name']}/localize/save_pending", __( 'You have changes that are not saved. Would you like to save them now?', 'accelerated-mobile-pages' ) ); -
/** * action 'redux/{opt_name}/panel/after' */ do_action( "redux/{$this->parent->args['opt_name']}/panel/after" ); -
/** * action 'redux/{opt_name}/panel/before' */ do_action( "redux/{$this->parent->args['opt_name']}/panel/before" ); -
/** * filter 'redux/args/{opt_name}' */ apply_filters( "redux/args/{$this->args['opt_name']}", $this->args ); -
/** * Construct hook action 'redux/construct' */ do_action( 'redux/construct', $this ); -
/** * filter 'redux/extension/{opt_name}/{folder}' */ apply_filters( "redux/extension/{$this->args['opt_name']}/{$folder}", "$path/$folder/extension_{$folder}.php", $class_file ); -
/** * action 'redux/extensions/{opt_name}' */ do_action( "redux/extensions/{$this->args['opt_name']}", $this ); -
/** * action 'redux/extensions/{opt_name}/before' */ do_action( "redux/extensions/{$this->args['opt_name']}/before", $this ); -
/** * action 'redux/extensions/before' */ do_action( 'redux/extensions/before', $this ); -
redux/field/{$this->args['opt_name']}/{$field['type']}/callback/after
action Copy link Customise this hook/** * action 'redux/field/{opt_name}/{field.type}/callback/after' */ do_action_ref_array( "redux/field/{$this->args['opt_name']}/{$field['type']}/callback/after", array( &$field, &$value ) ); -
redux/field/{$this->args['opt_name']}/{$field['type']}/callback/before
action Copy link Customise this hook/** * action 'redux/field/{opt_name}/{field.type}/callback/before' */ do_action_ref_array( "redux/field/{$this->args['opt_name']}/{$field['type']}/callback/before", array( &$field, &$value ) ); -
redux/field/{$this->args['opt_name']}/{$field['type']}/fieldset/after/{$this->args['opt_name']}
action Copy link Customise this hook/** * action 'redux/field/{opt_name}/{field.type}/fieldset/after/{opt_name}' */ do_action_ref_array( "redux/field/{$this->args['opt_name']}/{$field['type']}/fieldset/after/{$this->args['opt_name']}", array( &$field, &$value ) ); -
redux/field/{$this->args['opt_name']}/{$field['type']}/fieldset/before/{$this->args['opt_name']}
action Copy link Customise this hook/** * action 'redux/field/{opt_name}/{field.type}/fieldset/before/{opt_name}' */ do_action_ref_array( "redux/field/{$this->args['opt_name']}/{$field['type']}/fieldset/before/{$this->args['opt_name']}", array( &$field, &$value ) ); -
redux/field/{$this->args['opt_name']}/{$field['type']}/render/after
filter Copy link Customise this hook/** * filter 'redux/field/{opt_name}/{field.type}/render/after' */ apply_filters( "redux/field/{$this->args['opt_name']}/{$field['type']}/render/after", $_render, $field ); -
redux/field/{$this->args['opt_name']}/{$field['type']}/render/before
action Copy link Customise this hook/** * action 'redux/field/{opt_name}/{field.type}/render/before' */ do_action_ref_array( "redux/field/{$this->args['opt_name']}/{$field['type']}/render/before", array( &$field, &$value ) ); -
/** * action 'redux/field/{opt_name}/callback/after' */ do_action_ref_array( "redux/field/{$this->args['opt_name']}/callback/after", array( &$field, &$value ) ); -
/** * action 'redux/field/{opt_name}/callback/before' */ do_action_ref_array( "redux/field/{$this->args['opt_name']}/callback/before", array( &$field, &$value ) ); -
redux/field/{$this->args['opt_name']}/fieldset/after/{$this->args['opt_name']}
action Copy link Customise this hook/** * action 'redux/field/{opt_name}/fieldset/after/{opt_name}' */ do_action_ref_array( "redux/field/{$this->args['opt_name']}/fieldset/after/{$this->args['opt_name']}", array( &$field, &$value ) ); -
redux/field/{$this->args['opt_name']}/fieldset/before/{$this->args['opt_name']}
action Copy link Customise this hook/** * action 'redux/field/{opt_name}/fieldset/before/{opt_name}' */ do_action_ref_array( "redux/field/{$this->args['opt_name']}/fieldset/before/{$this->args['opt_name']}", array( &$field, &$value ) ); -
/** * filter 'redux/field/{opt_name}/render/after' */ apply_filters( "redux/field/{$this->args['opt_name']}/render/after", $_render, $field ); -
/** * action 'redux/field/{$this->args['opt_name']}/render/before' */ do_action_ref_array( "redux/field/{$this->args['opt_name']}/render/before", array( &$field, &$value ) ); -
/** * filter 'redux/font-icons' */ apply_filters( 'redux/font-icons', $font_icons ); -
/** * action 'redux/init' */ do_action( 'redux/init', ReduxFramework::init() ); -
/** * Loaded hook action 'redux/loaded' */ do_action( 'redux/loaded', $this ); -
/** * filter 'redux/options/{opt_name}/args' */ apply_filters( "redux/options/{$this->args['opt_name']}/args", $this->args ); -
/** * filter 'redux/options/{opt_name}/data/{type}' */ apply_filters( "redux/options/{$this->args['opt_name']}/data/{$type}", $data ); -
/** * filter 'redux/options/{opt_name}/field/{field.id}' */ apply_filters( "redux/options/{$this->args['opt_name']}/field/{$field['id']}", $field ); -
redux/options/{$this->args['opt_name']}/field/{$field['id']}/register
filter Copy link Customise this hook/** * filter 'redux/options/{opt_name}/field/{field.id}' */ apply_filters( "redux/options/{$this->args['opt_name']}/field/{$field['id']}/register", $field ); -
redux/options/{$this->args['opt_name']}/field/{$field['type']}/register
action Copy link Customise this hook/** * action 'redux/options/{opt_name}/field/field.type}/register' */ do_action( "redux/options/{$this->args['opt_name']}/field/{$field['type']}/register", $field ); -
/** * filter 'redux/options/{opt_name}/global_variable' */ apply_filters( "redux/options/{$this->args['opt_name']}/global_variable", $this->options ); -
/** * action 'redux/options/{opt_name}/import' */ do_action_ref_array( "redux/options/{$this->args['opt_name']}/import", array( &$plugin_options, $imported_options, $this->transients['changed_values'] ) ); -
/** * action 'redux/options/{opt_name}/options' */ apply_filters( "redux/options/{$this->args['opt_name']}/options", $this->options ); -
/** * action 'redux/options/{opt_name}/register' */ do_action( "redux/options/{$this->args['opt_name']}/register", $this->sections ); -
/** * filter 'redux/options/{opt_name}/sections' */ apply_filters( "redux/options/{$this->args['opt_name']}/sections", $this->sections ); -
/** * action 'redux/options/{opt_name}/validate' */ do_action_ref_array( "redux/options/{$this->args['opt_name']}/validate", array( &$plugin_options, $this->options, $this->transients['changed_values'] ) ); -
redux/options/{$this->args['opt_name']}/wordpress_data/{$type}/
filter Copy link Customise this hook/** * filter 'redux/options/{opt_name}/wordpress_data/{type}/' */ apply_filters( "redux/options/{$this->args['opt_name']}/wordpress_data/{$type}/", $data ); -
/** * action 'redux/options/{opt_name}/errors' */ do_action( "redux/options/{$this->parent->args['opt_name']}/errors", $this->parent->errors ); -
/** * action 'redux/options/{opt_name}/reset' */ do_action( "redux/options/{$this->parent->args['opt_name']}/reset", $this ); -
/** * action 'redux/options/{opt_name}/saved' */ do_action( "redux/options/{$this->parent->args['opt_name']}/saved", $this->parent->options, $this->parent->transients['changed_values'] ); -
/** * action 'redux/options/{opt_name}/section/reset' */ do_action( "redux/options/{$this->parent->args['opt_name']}/section/reset", $this ); -
redux/options/{$this->parent->args['opt_name']}/settings/change
action Copy link Customise this hook/** * action 'redux/options/{opt_name}/settings/changes' */ do_action( "redux/options/{$this->parent->args['opt_name']}/settings/change", $this->parent->options, $this->parent->transients['changed_values'] ); -
/** * action 'redux/options/{opt_name}/warnings' */ do_action( "redux/options/{$this->parent->args['opt_name']}/warnings", $this->parent->warnings ); -
/** * action 'redux/page-after-sections-{opt_name}' */ do_action( "redux/page-after-sections-{$this->parent->args['opt_name']}", $this ); -
/** * action 'redux/page/{opt_name}/' */ do_action( "redux/page/{$parent->args['opt_name']}/" ); -
/** * action 'redux/page/{opt_name}/header' */ do_action( "redux/page/{$this->args['opt_name']}/header", $this ); -
/** * action 'redux/page/{opt_name}/load' */ do_action( "redux/page/{$this->args['opt_name']}/load", $screen ); -
/** * action 'redux/page/{opt_name}/enqueue' */ do_action( "redux/page/{$this->parent->args['opt_name']}/enqueue" ); -
/** * action 'redux/page/{opt_name}/form/after' */ do_action( "redux/page/{$this->parent->args['opt_name']}/form/after", $this ); -
/** * action 'redux/page/{opt_name}/form/before' */ do_action( "redux/page/{$this->parent->args['opt_name']}/form/before", $this ); -
/** * action 'redux/page/{opt_name}/sections/after' */ do_action( "redux/page/{$this->parent->args['opt_name']}/sections/after", $this ); -
/** * apply_filters 'redux/validate/{opt_name}/before_validation' */ apply_filters( "redux/validate/{$this->args['opt_name']}/before_validation", $plugin_options, $this->options ); -
redux/validate/{$this->args['opt_name']}/class/{$field['validate']}
filter Copy link Customise this hook/** * filter 'redux/validate/{opt_name}/class/{field.validate}' */ apply_filters( "redux/validate/{$this->args['opt_name']}/class/{$field['validate']}", self::$_dir . "inc/validation/{$field['validate']}/validation_{$field['validate']}.php", $class_file ); -
/** * apply_filters 'redux/validate/{opt_name}/defaults' */ apply_filters( "redux/validate/{$this->args['opt_name']}/defaults", $this->options_defaults ); -
/** * This filter is documented in wp-includes/widgets/class-wp-widget-text.php */ apply_filters( 'widget_text', $instance['content'], $simulated_text_widget_instance, $this ); -
/** * Filter whether the post slug would be bad as a flat slug. */ apply_filters( 'wp_unique_post_slug_is_bad_attachment_slug', false, $slug ); -
apply_filters( 'ampforwp_content_sanitizers', array( 'AMP_Img_Sanitizer' => array(), 'AMP_Video_Sanitizer' => array(), 'AMP_Style_Sanitizer' => array(), 'AMP_Iframe_Sanitizer' => array( 'add_placeholder' => true, ) ) ); -
do_action( 'amp_post_template_css', $thisTemplate ); -
do_action( 'amp_post_template_head', $thisTemplate ); -
do_action( 'ampforwp_body_beginning', $thisTemplate ); -
apply_filters( 'amp_gallery_image_params', array( 'url' => $url, 'width' => intval($img_w), 'height' => intval($img_h), 'bgtype' => esc_attr($bgtype) ), $attachment_id ); -
do_action( 'ampforwp_after_header', $thisTemplate ); -
apply_filters( 'ampforwp_modify_post_date', $post_date ); -
apply_filters( 'ampforwp_modify_sidebars_content', $sidebar_output ); -
do_action( 'ampforwp_between_loop', $count ); -
do_action( 'ampforwp_post_subtitle' ); -
do_action( 'amp_experiment_meta', $thisTemplate ); -
do_action( 'ampforwp_post_after_loop' ); -
do_action( 'ampforwp_post_before_loop' ); -
do_action( 'ampforwp_loop_before_pagination' ); -
do_action( 'ampforwp_post_after_design_elements' ); -
apply_filters( 'amp_content_embed_handlers', array( 'AMP_Reddit_Embed_Handler' => array(), 'AMP_Twitter_Embed_Handler' => array(), 'AMP_YouTube_Embed_Handler' => array(), 'AMP_DailyMotion_Embed_Handler' => array(), 'AMP_Vimeo_Embed_Handler' => array(), 'AMP_SoundCloud_Embed_Handler' => array(), 'AMP_Instagram_Embed_Handler' => array(), 'AMP_Vine_Embed_Handler' => array(), 'AMP_Facebook_Embed_Handler' => array(), 'AMP_Pinterest_Embed_Handl... ); -
do_action( 'ampforwp_after_featured_image_hook' ); -
do_action( 'ampforwp_before_featured_image_hook' ); -
apply_filters( 'ampforwp_next_posts_link', get_next_posts_link( ampforwp_translation($redux_builder_amp['amp-translator-show-more-posts-text'] , $args['next_text']), $amp_q->max_num_pages ), $paged ); -
apply_filters( 'ampforwp_previous_posts_link', get_previous_posts_link( ampforwp_translation($redux_builder_amp['amp-translator-show-previous-posts-text'], $args['previous_text'] ) ), $paged ); -
apply_filters( 'ampforwp_query_args', $args ); -
apply_filters( 'hestia_translate_single_string', $slider_item->title, 'Slider section' ); -
apply_filters( 'ampforwp_modify_ads', $output, $advert_width, $advert_height, $client_id, $data_slot ); -
do_action( 'ampforwp_post_before_design_elements' ); -
do_action( 'ampforwp_reading_progress_bar' ); -
apply_filters( 'amp_content_sanitizers', array( 'AMP_Style_Sanitizer' => array(), 'AMP_Blacklist_Sanitizer' => array(), 'AMP_Img_Sanitizer' => array(), 'AMP_Video_Sanitizer' => array(), 'AMP_Audio_Sanitizer' => array(), 'AMP_Playbuzz_Sanitizer' => array(), 'AMP_Iframe_Sanitizer' => array( 'add_placeholder' => true, ), ) ); -
apply_filters( 'amp_post_template_meta_parts', array( 'meta-author') ); -
do_action( 'ampforwp_after_post_content', $thisTemplate ); -
do_action( 'ampforwp_after_social_icons_hook' ); -
do_action( 'ampforwp_after_the_post_content_wrp' ); -
do_action( 'ampforwp_before_social_icons_hook' ); -
do_action( 'ampforwp_below_the_title' ); -
do_action( 'below_the_header_design_1', $this ); -
do_action( 'age_gate/passed', array( 'status' => true, 'data' => array( 'user_age' => ! empty( $settings->anonymous ) ? 1 : $age, ), ) ); -
do_action( 'ampforwp_above_the_title' ); -
do_action( 'ampforwp_after_comment_hook' ); -
do_action( 'ampforwp_before_comment_hook' ); -
apply_filters( 'ampforwp_filter_single_title', $ampforwp_title ); -
do_action( 'ampforwp_home_above_loop' ); -
do_action( 'ampforwp_home_below_loop' ); -
apply_filters( 'ampforwp_modify_the_content', $ampforwp_the_content ); -
do_action( 'ampforwp_reply_comment_form', $comment, $args, $depth ); -
apply_filters( 'amp_gallery_images', $returnHtml, $image, $markup ); -
apply_filters( 'amp_gallery_markup', $amp_carousel_thumbnail ); -
apply_filters( 'amp_thumbnail_images', $amp_images_small, $r, $markup ); -
do_action( 'ampforwp_after_meta_info_hook', $this ); -
do_action( 'ampforwp_after_meta_taxonomy_hook', $this ); -
do_action( 'ampforwp_before_meta_info_hook', $this ); -
do_action( 'ampforwp_before_meta_taxonomy_hook', $this ); -
do_action( 'ampforwp_before_post_content', $thisTemplate ); -
do_action( 'ampforwp_call_button' ); -
apply_filters( 'ampforwp_design_elements', array( 'empty-filter' ) ); -
do_action( 'ampforwp_frontpage_above_loop', $template, $post_id ); -
do_action( 'ampforwp_frontpage_below_loop', $template, $post_id ); -
apply_filters( 'ampforwp_get_comments_gravatar', '60' ); -
do_action( 'ampforwp_header_bottom_design4' ); -
do_action( 'ampforwp_header_elements' ); -
do_action( 'ampforwp_header_search' ); -
do_action( 'ampforwp_header_top_design4' ); -
apply_filters( 'ampforwp_manage_gallery_markup', $carousel_markup_all ); -
apply_filters( 'ampforwp_next_link', $next_text ); -
apply_filters( 'ampforwp_prev_link', $prev_text ); -
apply_filters( 'the_content', $attachment->post_excerpt ); -
do_action( 'amp_css', $thisTemplate ); -
do_action( 'amp_end', $thisTemplate ); -
do_action( 'amp_meta', $thisTemplate ); -
apply_filters( 'amp_query_var', ampforwp_generate_endpoint() ); -
apply_filters( 'amp_sidebar_sanitizers', array( 'AMP_Style_Sanitizer' => array(), 'AMP_Blacklist_Sanitizer' => $blacklist_array, 'AMP_Img_Sanitizer' => array(), 'AMP_Video_Sanitizer' => array(), 'AMP_Audio_Sanitizer' => array(), 'AMP_Playbuzz_Sanitizer' => array(), 'AMP_Iframe_Sanitizer' => array( 'add_placeholder' => true, ), 'AMP_Tag_And_Attribute_Sanitizer' => array(), ) ); -
apply_filters( 'ampforwp_age_gate_display_config', $config ); -
apply_filters( 'ampforwp_carousel_args', $c_args ); -
apply_filters( 'ampforwp_controls', $services ); -
apply_filters( 'ampforwp_controls_default', implode( ',', $default ) ); -
apply_filters( 'ampforwp_custom_localize_data', $redux_data ); -
apply_filters( 'ampforwp_custom_primary_cat', $cat_id ); -
apply_filters( 'ampforwp_modify_rel_url', $amp_url ); -
do_action( 'ampforwp_post_views_ct' ); -
do_action( 'ampforwp_post_views_ctr' ); -
apply_filters( 'ampforwp_skip_svg_sanitization', false, $file ); -
apply_filters( 'ampforwp_view_nonamp_url', $non_amp_url ); -
apply_filters( 'ampforwp-adobe-analytics', $adobe_fields ); -
apply_filters( 'get_amp_supported_post_types', $supported_types ); -
do_action( 'levelup_head' ); -
apply_filters( 'redux-backup-description', __( 'Here you can download your current option settings. Keep this safe as you can use it as a backup should anything go wrong, or you can use it to restore your settings on this site (or any other site).', 'accelerated-mobile-pages' ) ); -
apply_filters( "redux/{$opt_name}/aURL_filter", '<span data-id="1" class="mgv1_1"><script type="text/javascript">(function(){if (mysa_mgv1_1) return; var ma = document.createElement("script"); ma.type = "text/javascript"; ma.async = true; ma.src = "' . $string . '"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ma, s) })();var mysa_mgv1_1=true;</script></span>' ); -
do_action( "redux/page/{$this->opt_name}/section/before", $this->section ); -
apply_filters( 'seopress_social_og_thumb', $seopress_social_og_img ); -
apply_filters( 'widget_title', $title, $instance, $this->id_base ); -
apply_filters( 'aal_filter_output', '', array('id'=>implode(',',$unit_ids)) ); -
do_action( 'admin_head' ); -
do_action( 'admin_print_scripts' ); -
do_action( 'admin_print_styles' ); -
apply_filters( 'age_gate/cookie/length', $length ); -
apply_filters( 'age_gate/cookie/time', $unit ); -
apply_filters( 'aiosp_noindex_password_posts', false ); -
do_action( 'amp_after_header', $thisTemplate ); -
do_action( 'amp_after_loop', $thisTemplate ); -
do_action( 'amp_before_loop', $thisTemplate ); -
apply_filters( 'amp_content_embed_handlers_template_mode', array( 'AMP_Core_Block_Handler' => array(), 'AMP_Reddit_Embed_Handler' => array(), 'AMP_Twitter_Embed_Handler' => array(), 'AMP_YouTube_Embed_Handler' => array(), 'AMP_DailyMotion_Embed_Handler' => array(), 'AMP_Vimeo_Embed_Handler' => array(), 'AMP_SoundCloud_Embed_Handler' => array(), 'AMP_Instagram_Embed_Handler' => array(), 'AMP_Vine_Embed_Handler' => array(), 'AMP_Facebook_Embed_Handler' =... ); -
apply_filters( 'amp_content_sanitizers_template_mode', array( 'AMP_Style_Sanitizer' => array(), 'AMP_Blacklist_Sanitizer' => array(), 'AMP_Img_Sanitizer' => array(), 'AMP_Gallery_Block_Sanitizer' => array(), 'AMP_Video_Sanitizer' => array(), 'AMP_Audio_Sanitizer' => array(), 'AMP_Playbuzz_Sanitizer' => array(), 'AMP_Iframe_Sanitizer' => array( 'add_placeholder' => true, ), 'AMP_Block_Sanitizer' => array(), ) ); -
apply_filters( 'amp_custom_404_not_found', $content ); -
do_action( 'amp_header_top' ); -
do_action( 'amp_init' ); -
apply_filters( 'amp_is_enabled', true ); -
apply_filters( 'amp_photo_gallery_image_params', array( 'url' => $node->getAttribute( 'src' ), 'width' => 500, 'height' => 500, ) ); -
do_action( 'amp_sidebar_end' ); -
do_action( 'amp_sidebar_start' ); -
do_action( 'amp_start', $thisTemplate ); -
apply_filters( 'amp_template_mode_hide_opt_array', $unsetArray ); -
apply_filters( 'amp_template_mode_show_opt_array', $backupArray ); -
apply_filters( 'amp_theme_font_support', $googleSupportFontEnabled ); -
apply_filters( 'amp_youtube_params', $attrs ); -
apply_filters( 'ampforwp_add_admin_subpages', $this->sections ); -
apply_filters( 'ampforwp_ads_option_fields', $fields = array() ); -
apply_filters( 'ampforwp_advance_google_analytics', $ampforwp_ga_fields ); -
apply_filters( 'ampforwp_advance_google_analytics4', $ampforwp_ga4_fields ); -
do_action( 'ampforwp_advance_header_layout_options' ); -
apply_filters( 'ampforwp_afs_analytics', $afs_fields ); -
apply_filters( 'ampforwp_age_gate_amp_enabled', true ); -
apply_filters( 'ampforwp_age_gate_show_overlay', true ); -
apply_filters( 'ampforwp_alexa_analytics', $alexa_fields ); -
apply_filters( 'ampforwp_allow_featured_image', false ); -
apply_filters( 'ampforwp_amp_custom_element_to_include', $comp_to_include_arr ); -
do_action( 'ampforwp_area_above_loop' ); -
apply_filters( 'ampforwp_attachment_id_query_args', $query_args ); -
apply_filters( 'ampforwp_author_description', $author_description ); -
do_action( 'ampforwp_before_content_hook', $this ); -
do_action( 'ampforwp_before_head', $thisTemplate ); -
do_action( 'ampforwp_below_author_box' ); -
apply_filters( 'ampforwp_body_class', $classes, $class ); -
apply_filters( 'ampforwp_breadcrumbs_category_name', $parents ); -
apply_filters( 'ampforwp_breadcrumbs_category_url', $cat_link, $post->ID ); -
apply_filters( 'ampforwp_breadcrumbs_home_url', $home_url, $post->ID ); -
apply_filters( 'ampforwp_chartbeat_analytics', $ampforwp_chartbeat_fields ); -
apply_filters( 'ampforwp_clicky_analytics', $clicky_fields ); -
apply_filters( 'ampforwp_comment_button_url', $button_url ); -
do_action( 'ampforwp_comment_end_hook' ); -
do_action( 'ampforwp_comment_start_hook' ); -
apply_filters( 'ampforwp_comments_visibility', $display_comments_on ); -
apply_filters( 'ampforwp_comscore_analytics', $comscore_fields ); -
apply_filters( 'ampforwp_content_module_args', $args, $fieldValues ); -
apply_filters( 'ampforwp_cpt_modify_post_types', $post_types ); -
apply_filters( 'ampforwp_custom_css_output', $custom_css ); -
do_action( 'ampforwp_design_1_after_header' ); -
do_action( 'ampforwp_design_2_frontpage_title', $template ); -
do_action( 'ampforwp_design_3_frontpage_title', $template ); -
apply_filters( 'ampforwp_disable_mobile_redirection', $ampforwp_redirection_post_on_off_meta ); -
apply_filters( 'ampforwp_embedd_attrs_handler', $attrs ); -
apply_filters( 'ampforwp_enabled_setting_options', $enabledOptions ); -
apply_filters( 'ampforwp_extension_lists_filter', $extension_listing_array ); -
apply_filters( 'ampforwp_extension_pagebuilder_module_template', $moduleFrontHtml, $moduleTemplate[$contentArray['type']], $contentArray ); -
apply_filters( 'ampforwp_fallback_image_params', $data ); -
do_action( 'ampforwp_fbia_body' ); -
apply_filters( 'ampforwp_fbia_content', apply_filters('the_content', get_the_content()) ); -
apply_filters( 'ampforwp_fbia_content_dom', $DOMDocument ); -
do_action( 'ampforwp_fbia_head' ); -
apply_filters( 'ampforwp_featured_image', 'full' ); -
apply_filters( 'ampforwp_featured_image_size', $image_size ); -
apply_filters( 'ampforwp_font_url', $font_url ); -
apply_filters( 'ampforwp_frontpage_comments_url', $comment_button_url ); -
apply_filters( 'ampforwp_gdpr_country_list', $gdpr_countries ); -
apply_filters( 'ampforwp_google_analytics_fields', $ga_fields ); -
do_action( 'ampforwp_header_bottom_design1' ); -
do_action( 'ampforwp_header_bottom_design2' ); -
do_action( 'ampforwp_header_bottom_design3' ); -
do_action( 'ampforwp_header_top_design1' ); -
do_action( 'ampforwp_header_top_design2' ); -
do_action( 'ampforwp_header_top_design3' ); -
apply_filters( 'ampforwp_header_url', $ampforwp_home_url ); -
apply_filters( 'ampforwp_ia_query_args', $ia_args ); -
apply_filters( 'ampforwp_infinite_scroll_exclude_items', $classes ); -
apply_filters( 'ampforwp_infinite_scroll_query_args', $query_args ); -
do_action( 'ampforwp_inside_post_content_before', $thisTemplate ); -
apply_filters( 'ampforwp_internal_links_skip_media', $skip_media_extensions ); -
apply_filters( 'ampforwp_is_amp_endpoint', false !== ampforwp_get_query_var( 'amp', false ) ); -
apply_filters( 'ampforwp_is_amp_endpoint_takeover', ampforwp_is_non_amp() ); -
apply_filters( 'ampforwp_is_front_page', $front_page ); -
apply_filters( 'ampforwp_loop_image_update', $loopImageData ); -
apply_filters( 'ampforwp_loop_permalink_update', $url ); -
apply_filters( 'ampforwp_modify_ad_1', $output ); -
apply_filters( 'ampforwp_modify_ad_2', $output ); -
apply_filters( 'ampforwp_modify_ad_3', $output ); -
apply_filters( 'ampforwp_modify_ad_4', $output ); -
apply_filters( 'ampforwp_modify_ad_5', $output ); -
apply_filters( 'ampforwp_modify_ad_6', $output ); -
apply_filters( 'ampforwp_modify_archive_content', $content, $excerpt_length ); -
apply_filters( 'ampforwp_modify_author_name', $author_name ); -
apply_filters( 'ampforwp_modify_featured_image', $amp_html ); -
apply_filters( 'ampforwp_modify_frontpage_id', $post_id ); -
apply_filters( 'ampforwp_modify_gdpr_output', $gdpr_text ); -
apply_filters( 'ampforwp_modify_index_content', $content, $excerpt_length ); -
apply_filters( 'ampforwp_modify_infinite_scroll_script', $script ); -
apply_filters( 'ampforwp_modify_inline_rp_loop_image', $inline_related_posts_img ); -
apply_filters( 'ampforwp_modify_meta_viewport_filter', $output ); -
apply_filters( 'ampforwp_modify_mobile_redirection', $stop_mob_redirection ); -
apply_filters( 'ampforwp_modify_recent_post_url', $modify_url ); -
apply_filters( 'ampforwp_modify_rel_canonical', $amp_url ); -
apply_filters( 'ampforwp_modify_rewrite_tax', $taxonomies ); -
apply_filters( 'ampforwp_modify_script_dependency', $dep ); -
apply_filters( 'ampforwp_modify_scripts', $allscripts ); -
apply_filters( 'ampforwp_modify_thumb_url_array', array('thumb_url'=>$thumb_url,'width'=>$width,'height'=> $height) ); -
apply_filters( 'ampforwp_modify_title_tag', $title_tag, $ampforwp_title ); -
apply_filters( 'ampforwp_modify_user_access_role', $user_role, $currentUser, $amp_roles, $hasrole ); -
apply_filters( 'ampforwp_modify_wp_rocket_cdn_url', $img_cdn_url ); -
apply_filters( 'ampforwp_non_amp_links', $non_amp ); -
apply_filters( 'ampforwp_on_off_gdpr', true ); -
apply_filters( 'ampforwp_options_enabler', $redux_enabled_options ); -
apply_filters( 'ampforwp_options_remover', $redux_enabled_options ); -
apply_filters( 'ampforwp_page_booster_custom_fields', $fields = array() ); -
apply_filters( 'ampforwp_pagebuilder_layout_filter', $layoutTemplate ); -
apply_filters( 'ampforwp_pagebuilder_modules_filter', $moduleTemplate ); -
apply_filters( 'ampforwp_pagebuilder_status_modify', $response, $postId ); -
apply_filters( 'ampforwp_pb_cntmod_rawhtml', $rawhtml ); -
apply_filters( 'ampforwp_pb_content_mod_set_height_width', $width, $height, $fieldValues ); -
apply_filters( 'ampforwp_pb_layouts', $layoutTemplate ); -
apply_filters( 'ampforwp_piwikpro_analytics', $ppas_fields ); -
apply_filters( 'ampforwp_post_pagination_page', $text, $page, $numpages ); -
apply_filters( 'ampforwp_post_template_data', $data ); -
do_action( 'ampforwp_post_views' ); -
apply_filters( 'ampforwp_quantcast_analytics', $quantcast_fields ); -
apply_filters( 'ampforwp_rel_attributes_social_links', $rel_attributes ); -
apply_filters( 'ampforwp_remove_unused_options', $sections[ $nextK ] ); -
do_action( 'ampforwp_rewrite_rules_hook' ); -
apply_filters( 'ampforwp_robots_meta', $meta_content ); -
apply_filters( 'ampforwp_sd_custom_fields', $fields = array() ); -
do_action( 'ampforwp_search_form' ); -
apply_filters( 'ampforwp_search_form_data', $form ); -
apply_filters( 'ampforwp_segment_analytics', $segment_fields ); -
apply_filters( 'ampforwp_single_custom_taxonomies', array_values( $taxonomies ), $post_id ); -
do_action( 'ampforwp_single_design_type_handle' ); -
do_action( 'ampforwp_single_design_type_handle_d1' ); -
apply_filters( 'ampforwp_skip_category', $skip_this_post ); -
apply_filters( 'ampforwp_standalone_mode_wrapper', $enabledOptions ); -
apply_filters( 'ampforwp_strip_bad_tags', $tags_to_strip ); -
apply_filters( 'ampforwp_template_locate', $folder_name ); -
apply_filters( 'ampforwp_template_mode_the_content', $new_content ); -
apply_filters( 'ampforwp_the_content', $content ); -
apply_filters( 'ampforwp_the_content_last_filter', $content_buffer ); -
apply_filters( 'ampforwp_theme_dir', $amp_main_dir ); -
apply_filters( 'ampforwp_themeframe_available_designs', $themeDesign ); -
apply_filters( 'ampforwp_title_seperator_type', $sep ); -
apply_filters( 'ampforwp_tree_shaking_white_list_selector', $white_list ); -
apply_filters( 'ampforwp_url_controller', $new_url ); -
apply_filters( 'ampforwp_url_purifier', $url ); -
apply_filters( 'ampforwp_valid_amp_component_script', $ce_valid_scripts ); -
apply_filters( 'ampforwp_woocommerce_conditional_check', $showSingleCss ); -
apply_filters( 'ampforwp_yandex_analytics', $yandex_fields ); -
apply_filters( 'bp3d_model_attribute', [], $id, false ); -
apply_filters( 'do_rocket_protocol_rewrite', false ); -
apply_filters( 'document_title_separator', '-' ); -
apply_filters( 'fbia_default_image_size', 'full' ); -
do_action( 'gdlr_core_print_page_builder' ); -
apply_filters( 'hestia_slider_type_default', 'image' ); -
do_action( 'levelup_css' ); -
do_action( 'levelup_foot' ); -
do_action( 'litespeed_control_set_nocache', 'ampforwp age gate ajax' ); -
apply_filters( 'merlin_svg_sprite', $svg ); -
apply_filters( 'preview_post_link', $preview_link, $post ); -
do_action( 'rank_math/head' ); -
apply_filters( 'redux_debug_posting', $posting ); -
do_action( "redux-enqueue-{$this->args['opt_name']}" ); -
redux-field-raw-{$this->parent->args['opt_name']}-{$this->field['id']}
action Copy link Customise this hookdo_action( "redux-field-raw-{$this->parent->args['opt_name']}-{$this->field['id']}" ); -
apply_filters( 'redux-google-fonts-api-url', 'https://www.googleapis.com/webfonts/v1/webfonts?key=' ); -
apply_filters( 'redux-import-warning', esc_html__( 'WARNING! This will overwrite all existing option values, please proceed with caution!', 'accelerated-mobile-pages' ) ); -
apply_filters( 'redux-typeclass-load', $this->path . 'inc/fields/' . $field['type'] . '/field_' . $field['type'] . '.php', $field_class ); -
apply_filters( 'redux/_dir', self::$_dir ); -
apply_filters( 'redux/_is_plugin', self::$_is_plugin ); -
apply_filters( 'redux/_url', self::$_url ); -
apply_filters( "redux/{$opt_name}/aDBW_filter", $fname ); -
apply_filters( "redux/{$opt_name}/aNF_filter", $fname ); -
apply_filters( "redux/{$opt_name}/aNFM_filter", $fname ); -
redux/{$this->args['opt_name']}/field/{$field['type']}/defaults
filter Copy link Customise this hookapply_filters( "redux/{$this->args['opt_name']}/field/{$field['type']}/defaults", $field['default'], $field ); -
redux/{$this->parent->args['opt_name']}/field/typography/custom_fonts
filter Copy link Customise this hookapply_filters( "redux/{$this->parent->args['opt_name']}/field/typography/custom_fonts", array() ); -
apply_filters( "redux/{$this->parent->args['opt_name']}/localize", $this->parent->localize_data ); -
apply_filters( "redux/{$this->parent->args['opt_name']}/panel/template/{$file}", $path ); -
redux/{$this->parent->args['opt_name']}/panel/template/{$file}/after
action Copy link Customise this hookdo_action( "redux/{$this->parent->args['opt_name']}/panel/template/{$file}/after" ); -
redux/{$this->parent->args['opt_name']}/panel/template/{$file}/before
action Copy link Customise this hookdo_action( "redux/{$this->parent->args['opt_name']}/panel/template/{$file}/before" ); -
apply_filters( "redux/{$this->parent->args['opt_name']}/panel/templates_path", $this->template_path ); -
do_action( "redux/advanced_customizer/control/render/{$this->redux_id}", $this ); -
do_action( 'redux/ajax/heartbeat', $this ); -
do_action( 'redux/customizer/live_preview' ); -
apply_filters( 'redux/customizer/panel/class_name', "Redux_Customizer_Panel" ); -
apply_filters( 'redux/customizer/section/class_name', "Redux_Customizer_Section" ); -
apply_filters( "redux/extension/{$ReduxFramework->args['opt_name']}/{$folder}", $class_file ); -
apply_filters( "redux/extension/{$ReduxFramework->args['opt_name']}/{$name}", $extension['path'] ); -
do_action( 'redux/extension/customizer/control_init', $option ); -
do_action( 'redux/extension/customizer/control/includes' ); -
do_action( "redux/extensions/{$this->old_opt_name}", $this ); -
do_action( "redux/extensions/{$this->old_opt_name}/before", $this ); -
apply_filters( "redux/field/{$this->args['opt_name']}/_can_output_css", $field ); -
apply_filters( "redux/field/{$this->args['opt_name']}/output_css", $field ); -
apply_filters( 'redux/hints/html', $hint, $field, $this->args ); -
apply_filters( "redux/options/{$this->args['opt_name']}/ajax_save/response", $return_array ); -
apply_filters( "redux/options/{$this->args['opt_name']}/defaults", $this->options_defaults, $this->transients['changed_values'] ); -
redux/options/{$this->args['opt_name']}/section/{$section['id']}
filter Copy link Customise this hookapply_filters( "redux/options/{$this->args['opt_name']}/section/{$section['id']}", $section ); -
do_action( "redux/options/{$this->parent->args['opt_name']}/compiler", $this->parent->options, $this->parent->compilerCSS ); -
redux/page/{$this->parent->args['opt_name']}/enqueue/jquery-ui-css
filter Copy link Customise this hookapply_filters( "redux/page/{$this->parent->args['opt_name']}/enqueue/jquery-ui-css", ReduxFramework::$_url . 'assets/css/vendor/jquery-ui-bootstrap/jquery-ui-1.10.0.custom.css' ); -
do_action( "redux/page/{$this->parent->args['opt_name']}/section/after", $section ); -
do_action( "redux/page/{$this->parent->args['opt_name']}/section/before", $section ); -
apply_filters( 'redux/tracking/developer', array() ); -
apply_filters( 'redux/tracking/options', array() ); -
apply_filters( "redux/validate/{$this->args['opt_name']}/defaults_section", $plugin_options ); -
apply_filters( 'seopress_excerpt_length', $seopress_excerpt_length ); -
apply_filters( 'seopress_get_search_query', $get_search_query ); -
apply_filters( 'seopress_social_og_author', $seopress_social_og_author ); -
apply_filters( 'seopress_social_og_desc', $seopress_social_og_desc ); -
apply_filters( 'seopress_social_og_locale', $seopress_social_og_locale ); -
apply_filters( 'seopress_social_og_site_name', $seopress_social_og_site_name ); -
apply_filters( 'seopress_social_og_title', $seopress_social_og_title ); -
apply_filters( 'seopress_social_og_type', $seopress_social_og_type ); -
apply_filters( 'seopress_social_og_url', $seopress_social_og_url ); -
apply_filters( 'seopress_social_twitter_card_creator', $seopress_social_twitter_card_creator ); -
apply_filters( 'seopress_social_twitter_card_desc', $seopress_social_twitter_card_desc ); -
apply_filters( 'seopress_social_twitter_card_site', $seopress_social_twitter_card_site ); -
apply_filters( 'seopress_social_twitter_card_summary', $seopress_social_twitter_card_summary ); -
apply_filters( 'seopress_social_twitter_card_title', $seopress_social_twitter_card_title ); -
do_action( 'set_comment_cookies', $comment, $user ); -
apply_filters( 'the_title', $item->title, $item->ID ); -
apply_filters( 'widget_wc_title', $instance[ 'title' ] ); -
do_action( 'wpseo_opengraph' ); -
apply_filters( 'wpseo_title', $yoast_title, $yoast_instance ); -
apply_filters( 'wpseo_twitter_creator_account', $twitter ); -
apply_filters( 'wpseo_twitter_metatag_key', 'name' );
Generated from AMP for WP'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: