Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | function maybe_disable_open_graph( $enabled ) { |
||
26 | /** This filter is documented in class.jetpack.php */ |
||
27 | $jetpack_enabled = apply_filters( 'jetpack_enable_open_graph', false ); |
||
28 | |||
29 | if ( $jetpack_enabled ) { |
||
30 | $enabled = false; |
||
31 | } |
||
32 | |||
33 | return $enabled; |
||
34 | } |
||
35 | add_filter( 'web_stories_enable_open_graph_metadata', __NAMESPACE__ . '\maybe_disable_open_graph' ); |
||
37 |