Skip to content

Instantly share code, notes, and snippets.

@rcg4u
Created June 1, 2019 19:47
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rcg4u/6e40e2738d24472e033f99203bcaee81 to your computer and use it in GitHub Desktop.
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.
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