• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Genesis Theme Framework a2z

Genesis Theme Framework a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / genesis_detect_open_graph_plugins() – Detect plugins that emit Open Graph tags.

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 );
}
 

Published: 25th November 2019 | Last updated: 25th November 2019

Primary Sidebar

Information

Function name: genesis_detect_open_graph_plugins
Plugin ref: Genesis Framework
Version: 3.3.5
Sourcefile: lib/functions/open-graph.php
File ref: lib/functions/open-graph.php
Deprecated?: No
API Letters: D,G,O,P

Footer

Genesis a2z
Genesis Theme Framework a2z
WordPress Dynamic API Reference
WordPress 5.9.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  genesis.wp-a2z.org
© Copyright Genesis a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites