You appear to be a bot. Output may be restricted
Description
Detect plugins that emit Open Graph tags.
Helps to determine if the Open Graph Customizer panel should be visible when Genesis SEO is active. Excludes plugins tested by `genesis_detect_seo_plugins()`. Genesis Open Graph is already disabled if those are active.
Usage
$bool = genesis_detect_open_graph_plugins();
Parameters
Returns
bool True if Open Graph Plugins are detected, false otherwise.
Source
File name: genesis/lib/functions/open-graph.php
Lines:
1 to 31 of 31
function genesis_detect_open_graph_plugins() { /** * Alter the Open Graph plugins Genesis will deactivate Open Graph support for. * * @since 3.2.0 * * @param array $open_graph_plugins Open Graph classes, functions, and constants to detect. */ $open_graph_plugins = apply_filters( 'genesis_detect_open_graph_plugins', [ 'classes' => [ 'Iworks_Opengraph', // https://wordpress.org/plugins/og/. ], 'functions' => [ 'jetpack_og_tags', // https://wordpress.org/plugins/jetpack/. 'opengraph_default_metadata', // https://wordpress.org/plugins/opengraph/. ], 'constants' => [ 'WEBDADOS_FB_VERSION', // https://wordpress.org/plugins/wonderm00ns-simple-facebook-open-graph-tags/. 'COMPLETE_OPEN_GRAPH_OPTIONS_PREFIX', // https://wordpress.org/plugins/complete-open-graph/. ], ] ); return genesis_detect_plugin( $open_graph_plugins ); }