Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wpseo_output_opengraph filter for consistency #15053

Open
jreviews opened this issue May 3, 2020 · 0 comments
Open

Add wpseo_output_opengraph filter for consistency #15053

jreviews opened this issue May 3, 2020 · 0 comments

Comments

@jreviews
Copy link

jreviews commented May 3, 2020

Would be nice to get an opengraph equivalent of the wpseo_output_twitter_card filter.

private function get_all_presenters() {
$presenters = \array_merge( $this->base_presenters, $this->indexing_directive_presenters );
if ( $this->options->get( 'opengraph' ) === true ) {
$presenters = \array_merge( $presenters, $this->open_graph_presenters );
}
if ( $this->options->get( 'twitter' ) === true && apply_filters( 'wpseo_output_twitter_card', true ) !== false ) {
$presenters = \array_merge( $presenters, $this->twitter_card_presenters );
}
return \array_merge( $presenters, $this->closing_presenters );
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants