get('post_amp_content');
} else {
// Custom/Alternative AMP content added through post meta
$ampforwp_the_content = $template->get('ampforwp_amp_content');
}
// Muffin Builder Compatibility #1455 #1893
if ( function_exists('mfn_builder_print') && ! $amp_custom_content_enable ) {
ob_start();
mfn_builder_print( $post_id );
$content = ob_get_contents();
ob_end_clean();
$sanitizer_obj = new AMPFORWP_Content( $content,
array(),
apply_filters( 'ampforwp_content_sanitizers',
array( 'AMP_Img_Sanitizer' => array(),
'AMP_Blacklist_Sanitizer' => array(),
'AMP_Style_Sanitizer' => array(),
'AMP_Video_Sanitizer' => array(),
'AMP_Audio_Sanitizer' => array(),
'AMP_Iframe_Sanitizer' => array(
'add_placeholder' => true,
),
)
)
);
if ( ! get_post_meta( $post_id, 'mfn-post-hide-content', true ) ) {
$ampforwp_custom_amp_editor_content = '';
$ampforwp_custom_amp_editor_content = $ampforwp_the_content;
$ampforwp_the_content = $sanitizer_obj->get_amp_content();
$ampforwp_the_content .= $ampforwp_custom_amp_editor_content;
}
else{
$ampforwp_the_content = $sanitizer_obj->get_amp_content();
}
}
$ampforwp_the_content = apply_filters('ampforwp_modify_the_content', $ampforwp_the_content);
echo $ampforwp_the_content;
do_action( 'ampforwp_after_post_content', $template ); ?>