Jetpack::check_twitter_tags PHP Method

check_twitter_tags() public method

If certain plugins are active, Jetpack's twitter tags are suppressed.
public check_twitter_tags ( ) : null
return null
    public function check_twitter_tags()
    {
        $active_plugins = self::get_active_plugins();
        if (!empty($active_plugins)) {
            foreach ($this->twitter_cards_conflicting_plugins as $plugin) {
                if (in_array($plugin, $active_plugins)) {
                    add_filter('jetpack_disable_twitter_cards', '__return_true', 99);
                    break;
                }
            }
        }
        /**
         * Allow Twitter Card Meta tags to be disabled.
         *
         * @since 2.6.0
         *
         * @param bool true Should Twitter Card Meta tags be disabled. Default to true.
         */
        if (!apply_filters('jetpack_disable_twitter_cards', false)) {
            require_once JETPACK__PLUGIN_DIR . 'class.jetpack-twitter-cards.php';
        }
    }
Jetpack