PluginProbe
WPSSO Core – Complete Schema Markup and Meta Tags / 22.7.0
WPSSO Core – Complete Schema Markup and Meta Tags v22.7.0
22.7.0 22.6.1 22.6.0 22.5.3 22.5.2 22.5.1 22.4.0 22.3.0 22.2.1 22.2.0 22.1.3 22.1.2 22.1.1 22.1.0 22.0.0 21.13.3 21.13.2 trunk 21.13.1
wpsso / lib / integ / util / jetpack.php

jetpack.php in WPSSO Core – Complete Schema Markup and Meta Tags 22.7.0, at lib/integ/util/jetpack.php

37 lines 766 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * License: GPLv3
4 * License URI: https://www.gnu.org/licenses/gpl.txt
5 * Copyright 2024-2026 Jean-Sebastien Morisset (https://wpsso.com/)
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9
10 die( 'These aren\'t the droids you\'re looking for.' );
11 }
12
13 if ( ! class_exists( 'WpssoIntegUtilJetpack' ) ) {
14
15 class WpssoIntegUtilJetpack {
16
17 private $p; // Wpsso class object.
18
19 public function __construct( &$plugin ) {
20
21 $this->p =& $plugin;
22
23 if ( $this->p->debug->enabled ) {
24
25 $this->p->debug->mark();
26 }
27
28 if ( ! is_admin() ) {
29
30 add_filter( 'jetpack_enable_opengraph', '__return_false', 1000 );
31 add_filter( 'jetpack_enable_open_graph', '__return_false', 1000 );
32 add_filter( 'jetpack_disable_twitter_cards', '__return_true', 1000 );
33 }
34 }
35 }
36 }
37