diff --git a/includes/utils/class-amp-validation-utils.php b/includes/utils/class-amp-validation-utils.php index d43b42989c6..2f2645809c6 100644 --- a/includes/utils/class-amp-validation-utils.php +++ b/includes/utils/class-amp-validation-utils.php @@ -554,6 +554,7 @@ public static function print_edit_form_validation_status( $post ) { // If no results from URL are available, validate post content outside frontend context. if ( empty( $validation_errors ) && post_type_supports( $post->post_type, 'editor' ) ) { + do_action( 'pre_amp_render_post', $post->ID ); self::process_markup( $post->post_content ); $validation_errors = array_merge( $validation_errors,