PluginProbe
Sharing Image / 3.7
Sharing Image v3.7
3.10 trunk 2.0 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.14 2.0.15 2.0.16 2.0.17 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 3.0 3.1 3.2 3.3 All 29 releases
sharing-image / snippets / class-seopress.php

class-seopress.php in Sharing Image 3.7, at snippets/class-seopress.php

52 lines 840 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * SEOPress Snippet class.
4 *
5 * @package sharing-image
6 * @author Anton Lukin
7 */
8
9 namespace Sharing_Image\Snippets;
10
11 if ( ! defined( 'ABSPATH' ) ) {
12 die;
13 }
14
15 /**
16 * Snippet class.
17 *
18 * @class SEOPress
19 */
20 class SEOPress {
21 /**
22 * Get snippet name.
23 */
24 public static function get_name() {
25 $name = array(
26 'title' => 'SEO Press',
27 'link' => 'https://wordpress.org/plugins/wp-seopress/',
28 );
29
30 return $name;
31 }
32
33 /**
34 * Check if plugin is activated.
35 */
36 public static function is_activated() {
37 if ( defined( 'SEOPRESS_VERSION' ) ) {
38 return true;
39 }
40
41 return false;
42 }
43
44 /**
45 * Init snippet filters.
46 */
47 public static function init_filters() {
48 add_filter( 'seopress_social_og_thumb', '__return_empty_string', 11 );
49 add_filter( 'seopress_social_twitter_card_thumb', '__return_empty_string', 11 );
50 }
51 }
52