SEO SIMPLE PACK - Version 2.2.7

Version Description

  • Changed the number of characters when automatically generating a description.
  • Added 'ssp_description_word_count' hook.
Download this release

Release Info

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

Code changes from version 2.2.6 to 2.2.7

class/trait/output_helper.php CHANGED
@@ -245,9 +245,10 @@ trait Output_Helper {
245
 
246
  // description
247
  if ( false !== strpos( $str, '%_page_contents_%' ) ) {
248
- $content = wp_strip_all_tags( do_shortcode( $obj->post_content ), true ); // 改行なども削除
249
- $content = mb_substr( $content, 0, 300 );
250
- $str = str_replace( '%_page_contents_%', $content, $str );
 
251
  }
252
  } elseif ( is_category() || is_tag() || is_tax() ) {
253
 
245
 
246
  // description
247
  if ( false !== strpos( $str, '%_page_contents_%' ) ) {
248
+ $word_count = apply_filters( 'ssp_description_word_count', 120 );
249
+ $content = wp_strip_all_tags( do_shortcode( $obj->post_content ), true ); // 改行なども削除
250
+ $content = mb_substr( $content, 0, $word_count );
251
+ $str = str_replace( '%_page_contents_%', $content, $str );
252
  }
253
  } elseif ( is_category() || is_tag() || is_tax() ) {
254
 
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: 5.8
7
- Stable tag: 2.2.6
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,10 @@ The following hooks are available.
121
 
122
  == Changelog ==
123
 
 
 
 
 
124
  = 2.2.6 =
125
  Bug fixes
126
 
4
  Tags: SEO, meta, analytics, webmaster, simple, japan, meta tag
5
  Requires at least: 4.9
6
  Tested up to: 5.8
7
+ Stable tag: 2.2.7
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.2.7 =
125
+ - Changed the number of characters when automatically generating a description.
126
+ - Added 'ssp_description_word_count' hook.
127
+
128
  = 2.2.6 =
129
  Bug fixes
130
 
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.2.6
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.2.7
7
  * Author: LOOS,Inc.
8
  * Author URI: https://loos-web-studio.com/
9
  * License: GPL2 or later