SEO SIMPLE PACK - Version 2.5.0

Version Description

  • Add get_front_data().
Download this release

Release Info

Developer looswebstudio
Plugin Icon 128x128 SEO SIMPLE PACK
Version 2.5.0
Comparing to
See all releases

Code changes from version 2.4.2 to 2.5.0

Files changed (3) hide show
  1. class/output.php +16 -0
  2. readme.txt +4 -1
  3. seo-simple-pack.php +1 -1
class/output.php CHANGED
@@ -89,6 +89,22 @@ class SSP_Output {
89
  }
90
 
91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
 
93
  /**
94
  * Genarate and output meta tags for current page.
89
  }
90
 
91
 
92
+ /**
93
+ * トップページのデータだけを取得する
94
+ * (テーマや外部プラグインから構造化データ生成に使用できるようにするためのもの)
95
+ */
96
+ public static function get_front_data( $target ) {
97
+ $settings = SSP_Data::$settings;
98
+ $return = '';
99
+ if ( 'title' === $target ) {
100
+ $title = $settings['home_title'];
101
+ $return = wp_strip_all_tags( $title );
102
+ } elseif ( 'description' === $target ) {
103
+ $return = $settings['home_desc'];
104
+ }
105
+ return self::replace_snippets( $return );
106
+ }
107
+
108
 
109
  /**
110
  * Genarate and output meta tags for current page.
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://loos-web-studio.com/
4
  Tags: SEO, meta, analytics, webmaster, simple, japan, meta tag
5
  Requires at least: 4.9
6
  Tested up to: 6.0
7
- Stable tag: 2.4.2
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -121,6 +121,9 @@ The following hooks are available.
121
 
122
  == Changelog ==
123
 
 
 
 
124
  = 2.4.2 =
125
  - Minor bug fixes.
126
 
4
  Tags: SEO, meta, analytics, webmaster, simple, japan, meta tag
5
  Requires at least: 4.9
6
  Tested up to: 6.0
7
+ Stable tag: 2.5.0
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
121
 
122
  == Changelog ==
123
 
124
+ = 2.5.0 =
125
+ - Add get_front_data().
126
+
127
  = 2.4.2 =
128
  - Minor bug fixes.
129
 
seo-simple-pack.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: SEO SIMPLE PACK
4
  * Plugin URI: https://wemo.tech/1670
5
  * Description: A very simple SEO plugin. You can easily set and customize meta tags and OGP tags for each page.
6
- * Version: 2.4.2
7
  * Author: LOOS,Inc.
8
  * Author URI: https://loos-web-studio.com/
9
  * License: GPL2 or later
3
  * Plugin Name: SEO SIMPLE PACK
4
  * Plugin URI: https://wemo.tech/1670
5
  * Description: A very simple SEO plugin. You can easily set and customize meta tags and OGP tags for each page.
6
+ * Version: 2.5.0
7
  * Author: LOOS,Inc.
8
  * Author URI: https://loos-web-studio.com/
9
  * License: GPL2 or later