Created
June 1, 2019 19:47
-
-
Save rcg4u/6e40e2738d24472e033f99203bcaee81 to your computer and use it in GitHub Desktop.
this is from Sridhar Katakam, this allows seopress to read Oxygen builder content. Get code snippets and add as a function.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'seopress_content_analysis_content', 'sp_content_analysis_content', 10, 2 ); | |
/** | |
* Filter the analyzed content to add content from Oxygen editor. | |
* @param string $content Current content in the WordPress editor. | |
* @param int $id ID of the current entry. | |
* @return string Modified content. | |
*/ | |
function sp_content_analysis_content( $content, $id ) { | |
// HTML of Oxygen's content. | |
$cf = do_shortcode( get_post_meta( $id, 'ct_builder_shortcodes', true ) ); | |
return $content . $cf; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment