WP Subtitle - Version 3.4

Version Description

  • Added support for the SEOPress plugin. Props @chriselkins.
  • You can now update the subtitle via the REST API. Props @chriselkins.
Download this release

Release Info

Developer husobj
Plugin Icon 128x128 WP Subtitle
Version 3.4
Comparing to
See all releases

Code changes from version 3.3.1 to 3.4

CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
  All notable changes to this project will be documented in this file.
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
 
 
 
 
 
 
 
5
  ## [3.3.1] - 2020-01-29
6
 
7
  ### Fixed
@@ -168,7 +174,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
168
  ### Added
169
  - First version.
170
 
171
- [Unreleased]: https://github.com/benhuson/wp-subtitle/compare/3.3.1...HEAD
 
172
  [3.3.1]: https://github.com/benhuson/wp-subtitle/compare/3.3...3.3.1
173
  [3.3]: https://github.com/benhuson/wp-subtitle/compare/3.2...3.3
174
  [3.2]: https://github.com/benhuson/wp-subtitle/compare/3.1...3.2
2
  All notable changes to this project will be documented in this file.
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
 
5
+ ## [3.4] - 2020-01-31
6
+
7
+ ### Added
8
+ - Added support for the SEOPress plugin. Props @chriselkins.
9
+ - You can now update the subtitle via the REST API. Props @chriselkins.
10
+
11
  ## [3.3.1] - 2020-01-29
12
 
13
  ### Fixed
174
  ### Added
175
  - First version.
176
 
177
+ [Unreleased]: https://github.com/benhuson/wp-subtitle/compare/3.4...HEAD
178
+ [3.3.1]: https://github.com/benhuson/wp-subtitle/compare/3.3.1...3.4
179
  [3.3.1]: https://github.com/benhuson/wp-subtitle/compare/3.3...3.3.1
180
  [3.3]: https://github.com/benhuson/wp-subtitle/compare/3.2...3.3
181
  [3.2]: https://github.com/benhuson/wp-subtitle/compare/3.1...3.2
README.md CHANGED
@@ -76,15 +76,15 @@ Subtitles can automatically be added to your WooCommerce products without needin
76
  - Display the subtitle on single product pages
77
  - Display the subtitle on product archives (category pages)
78
 
79
- ### Yoast SEO Plugin Support
80
 
81
- The plugin allows you to include the subtitle in your Yoast SEO meta titles and descriptions.
82
 
83
  Similar to the Yoast `%%title%%` placeholder which inserts the post title, you can use `%%wps_subtitle%%`.
84
 
85
  There are also addition placeholders and filters to allow to to customize seperators for the subtitle.
86
 
87
- For more information, [view the Yoast SEO documentation here](https://github.com/benhuson/wp-subtitle/wiki/Yoast-SEO-Plugin-Support).
88
 
89
  Installation
90
  ------------
@@ -140,6 +140,9 @@ The plugin is [hosted on GitHub](https://github.com/benhuson/wp-subtitle) and pu
140
  Upgrade Notice
141
  --------------
142
 
 
 
 
143
  ### 3.3.1
144
  Fixed broken closing H2 tag for WooCommerce subtitle.
145
 
76
  - Display the subtitle on single product pages
77
  - Display the subtitle on product archives (category pages)
78
 
79
+ ### Yoast SEO and SEOPress Plugin Support
80
 
81
+ The plugin allows you to include the subtitle in your meta titles and descriptions via the [Yoast SEO](https://wordpress.org/plugins/wordpress-seo/) and [SEOPress](https://wordpress.org/plugins/wp-seopress/) plugins.
82
 
83
  Similar to the Yoast `%%title%%` placeholder which inserts the post title, you can use `%%wps_subtitle%%`.
84
 
85
  There are also addition placeholders and filters to allow to to customize seperators for the subtitle.
86
 
87
+ For more information, [view the SEO support documentation here](https://github.com/benhuson/wp-subtitle/wiki/Yoast-SEO-Plugin-Support).
88
 
89
  Installation
90
  ------------
140
  Upgrade Notice
141
  --------------
142
 
143
+ ### 3.4
144
+ Added support for the SEOPress plugin and updating the subtitle via the REST API.
145
+
146
  ### 3.3.1
147
  Fixed broken closing H2 tag for WooCommerce subtitle.
148
 
plugin/admin/admin.php CHANGED
@@ -406,7 +406,7 @@ class WPSubtitle_Admin {
406
  // Check data and save
407
  if ( isset( $_POST['wps_subtitle'] ) ) {
408
 
409
- $new_value = $_POST['wps_subtitle'];
410
 
411
  $subtitle = new WP_Subtitle( $post_id );
412
 
406
  // Check data and save
407
  if ( isset( $_POST['wps_subtitle'] ) ) {
408
 
409
+ $new_value = wp_kses_post( $_POST['wps_subtitle'] );
410
 
411
  $subtitle = new WP_Subtitle( $post_id );
412
 
plugin/includes/compat/seopress.php ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @package WP Subtitle
5
+ * @subpackage SEOPress
6
+ *
7
+ * @since 3.4
8
+ *
9
+ * Compatibility for the SEOPress plugin:
10
+ * https://wordpress.org/plugins/wp-seopress/
11
+ *
12
+ * Adds support for a `%%wps_subtitle%%` placeholder to include
13
+ * the subtitle in browser titles and meta descriptions.
14
+ *
15
+ * Also adds `%%wps_subtitle_before_sep%%` and `%%wps_subtitle_after_sep%%`.
16
+ * These can be used to add seperators before/after the subtitle. If there
17
+ * is no subtitle set these placeholders will not be output.
18
+ *
19
+ * The seperator placeholders can be customized using the `wps_subtitle_seo_before_sep`
20
+ * and `wps_subtitle_seo_after_sep` filters.
21
+ *
22
+ * The seperator placeholders include a 'space' either side by default. This means that
23
+ * you should create your title template with no whitespace around the seperator placeholders.
24
+ * It allows you to customize the seperators to include commas and butt the seperator up to
25
+ * the preceding/following text.
26
+ *
27
+ * e.g. If '%%wps_subtitle_before_sep%%' is set to ', ':
28
+ * `%%title%%%%wps_subtitle_before_sep%%%%wps_subtitle%% %%sep%% %%sitename%%`
29
+ * "Title, Subtitle - Sitename"
30
+ */
31
+
32
+ class WPSubtitle_SEOPress {
33
+
34
+ /**
35
+ * Constructor
36
+ *
37
+ * @since 3.4
38
+ *
39
+ * @internal Do not create multiple instances.
40
+ */
41
+ public function __construct() {
42
+
43
+ add_filter( 'seopress_titles_template_variables_array', array( $this, 'add_seopress_replacements' ) );
44
+ add_filter( 'seopress_titles_template_replace_array', array( $this, 'replace_seopress_replacements' ) );
45
+
46
+ }
47
+
48
+ /**
49
+ * Add SEOPress Replacements Variables
50
+ *
51
+ * @since 3.4
52
+ *
53
+ * @param array $replacements SEO replacements variables.
54
+ * @return array Filtered replacements variables.
55
+ *
56
+ * @internal Called via the `seopress_titles_template_variables_array` filter.
57
+ */
58
+ public function add_seopress_replacements( $replacements ) {
59
+
60
+ $replacements[] = '%%wps_subtitle%%';
61
+ $replacements[] = '%%wps_subtitle_before_sep%%';
62
+ $replacements[] = '%%wps_subtitle_after_sep%%';
63
+
64
+ return $replacements;
65
+
66
+ }
67
+
68
+ /**
69
+ * Replace SEOPress Replacements Values
70
+ *
71
+ * @since 3.4
72
+ *
73
+ * @param array $replacements SEO replacements values.
74
+ * @return array Filtered replacements values.
75
+ *
76
+ * @internal Called via the `seopress_titles_template_replace_array` filter.
77
+ */
78
+ public function replace_seopress_replacements( $replacements ) {
79
+
80
+ global $post;
81
+
82
+ $wp_subtitle = new WP_Subtitle( $post );
83
+ $subtitle = $wp_subtitle->get_subtitle();
84
+
85
+ $replacements[] = $subtitle;
86
+
87
+ $sep = ' ' . $replacements[0] . ' ';
88
+
89
+ $before_sep = '';
90
+ $after_sep = '';
91
+
92
+ if ( ! empty( $subtitle ) ) {
93
+
94
+ $before_sep = apply_filters( 'wps_subtitle_seo_before_sep', $sep );
95
+ $after_sep = apply_filters( 'wps_subtitle_seo_after_sep', $sep );
96
+
97
+ }
98
+
99
+ $replacements[] = $before_sep;
100
+ $replacements[] = $after_sep;
101
+
102
+ return $replacements;
103
+
104
+ }
105
+
106
+ }
plugin/includes/rest.php CHANGED
@@ -37,7 +37,7 @@ class WPSubtitle_REST {
37
 
38
  register_rest_field( $post_types, 'wps_subtitle', array(
39
  'get_callback' => array( $this, 'get_rest_field' ),
40
- 'update_callback' => null,
41
  'schema' => null
42
  ) );
43
 
@@ -65,4 +65,20 @@ class WPSubtitle_REST {
65
 
66
  }
67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  }
37
 
38
  register_rest_field( $post_types, 'wps_subtitle', array(
39
  'get_callback' => array( $this, 'get_rest_field' ),
40
+ 'update_callback' => array( $this, 'update_rest_field' ),
41
  'schema' => null
42
  ) );
43
 
65
 
66
  }
67
 
68
+ /**
69
+ * Update REST Field
70
+ *
71
+ * @since 3.4
72
+ *
73
+ * @internal Called via register_rest_field() callback.
74
+ *
75
+ * @param string $value New value for the field.
76
+ * @param array $object Current post details.
77
+ */
78
+ public function update_rest_field( $value, $object ) {
79
+
80
+ update_post_meta( $object->ID, 'wps_subtitle', wp_kses_post( $value ) );
81
+
82
+ }
83
+
84
  }
plugin/languages/wp-subtitle-de_DE.mo CHANGED
Binary file
plugin/languages/wp-subtitle-de_DE.po CHANGED
@@ -1,34 +1,63 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Subtitle\n"
4
- "POT-Creation-Date: 2015-07-02 06:57-0000\n"
5
  "PO-Revision-Date: \n"
6
  "Last-Translator: me <me@fake.it>\n"
7
  "Language-Team: \n"
 
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
- "X-Generator: Poedit 1.7.3\n"
13
  "X-Poedit-SourceCharset: UTF-8\n"
14
  "X-Poedit-KeywordsList: __;_e;_x;_ex\n"
15
  "X-Poedit-Basepath: .\n"
16
- "Language: de_DE\n"
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
- #: ../admin/admin.php:79 ../admin/admin.php:150
 
20
  msgid "Subtitle"
21
  msgstr "Untertitel"
22
 
23
- #: ../admin/admin.php:200
24
  msgid "Enter subtitle here"
25
  msgstr "Untertitel hier eingeben"
26
 
27
- #: ../admin/pointers.php:146
28
  #, php-format
29
  msgid "%s Field"
30
  msgstr "%sfeld"
31
 
32
- #: ../admin/pointers.php:147
33
  msgid "This field has moved from a meta box to below the post title."
34
  msgstr "Dieses Feld wurde aus einer Metabox unter den Beitragstitel verschoben."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: WP Subtitle\n"
4
+ "POT-Creation-Date: 2020-01-31 09:28+0000\n"
5
  "PO-Revision-Date: \n"
6
  "Last-Translator: me <me@fake.it>\n"
7
  "Language-Team: \n"
8
+ "Language: de_DE\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
+ "X-Generator: Poedit 2.2.4\n"
14
  "X-Poedit-SourceCharset: UTF-8\n"
15
  "X-Poedit-KeywordsList: __;_e;_x;_ex\n"
16
  "X-Poedit-Basepath: .\n"
 
17
  "X-Poedit-SearchPath-0: ..\n"
18
 
19
+ #: plugin/admin/admin.php:109 plugin/admin/admin.php:203
20
+ #: plugin/admin/admin.php:274
21
  msgid "Subtitle"
22
  msgstr "Untertitel"
23
 
24
+ #: plugin/admin/admin.php:317 plugin/admin/admin.php:344
25
  msgid "Enter subtitle here"
26
  msgstr "Untertitel hier eingeben"
27
 
28
+ #: plugin/admin/pointers.php:149
29
  #, php-format
30
  msgid "%s Field"
31
  msgstr "%sfeld"
32
 
33
+ #: plugin/admin/pointers.php:150
34
  msgid "This field has moved from a meta box to below the post title."
35
  msgstr "Dieses Feld wurde aus einer Metabox unter den Beitragstitel verschoben."
36
+
37
+ #: plugin/includes/compat/woocommerce.php:102
38
+ #, fuzzy
39
+ #| msgid "Subtitle"
40
+ msgid "WP Subtitle"
41
+ msgstr "Untertitel"
42
+
43
+ #: plugin/includes/compat/woocommerce.php:109
44
+ msgid "Enable Product Subtitles"
45
+ msgstr ""
46
+
47
+ #: plugin/includes/compat/woocommerce.php:110
48
+ msgid "Add subtitle field to product edit screen"
49
+ msgstr ""
50
+
51
+ #: plugin/includes/compat/woocommerce.php:117
52
+ #, fuzzy
53
+ #| msgid "Subtitle"
54
+ msgid "Subtitle Display"
55
+ msgstr "Untertitel"
56
+
57
+ #: plugin/includes/compat/woocommerce.php:118
58
+ msgid "Show on single product pages"
59
+ msgstr ""
60
+
61
+ #: plugin/includes/compat/woocommerce.php:126
62
+ msgid "Show on product archives"
63
+ msgstr ""
plugin/languages/wp-subtitle.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: WP Subtitle\n"
5
- "POT-Creation-Date: 2018-12-19 23:04+0000\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Ben Huson <ben@thewhiteroom.net>\n"
8
  "Language-Team: \n"
@@ -11,19 +11,18 @@ msgstr ""
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
14
- "X-Generator: Poedit 2.2\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c\n"
17
  "X-Poedit-Basepath: ../..\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
20
- #: plugin/admin/admin.php:99 plugin/admin/admin.php:130
21
- #: plugin/admin/admin.php:138 plugin/admin/admin.php:191
22
- #: plugin/admin/admin.php:262
23
  msgid "Subtitle"
24
  msgstr ""
25
 
26
- #: plugin/admin/admin.php:305 plugin/admin/admin.php:332
27
  msgid "Enter subtitle here"
28
  msgstr ""
29
 
@@ -36,26 +35,26 @@ msgstr ""
36
  msgid "This field has moved from a meta box to below the post title."
37
  msgstr ""
38
 
39
- #: plugin/includes/compat/woocommerce.php:96
40
  msgid "WP Subtitle"
41
  msgstr ""
42
 
43
- #: plugin/includes/compat/woocommerce.php:103
44
  msgid "Enable Product Subtitles"
45
  msgstr ""
46
 
47
- #: plugin/includes/compat/woocommerce.php:104
48
  msgid "Add subtitle field to product edit screen"
49
  msgstr ""
50
 
51
- #: plugin/includes/compat/woocommerce.php:111
52
  msgid "Subtitle Display"
53
  msgstr ""
54
 
55
- #: plugin/includes/compat/woocommerce.php:112
56
  msgid "Show on single product pages"
57
  msgstr ""
58
 
59
- #: plugin/includes/compat/woocommerce.php:120
60
  msgid "Show on product archives"
61
  msgstr ""
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: WP Subtitle\n"
5
+ "POT-Creation-Date: 2020-01-31 09:28+0000\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Ben Huson <ben@thewhiteroom.net>\n"
8
  "Language-Team: \n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
14
+ "X-Generator: Poedit 2.2.4\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c\n"
17
  "X-Poedit-Basepath: ../..\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
20
+ #: plugin/admin/admin.php:109 plugin/admin/admin.php:203
21
+ #: plugin/admin/admin.php:274
 
22
  msgid "Subtitle"
23
  msgstr ""
24
 
25
+ #: plugin/admin/admin.php:317 plugin/admin/admin.php:344
26
  msgid "Enter subtitle here"
27
  msgstr ""
28
 
35
  msgid "This field has moved from a meta box to below the post title."
36
  msgstr ""
37
 
38
+ #: plugin/includes/compat/woocommerce.php:102
39
  msgid "WP Subtitle"
40
  msgstr ""
41
 
42
+ #: plugin/includes/compat/woocommerce.php:109
43
  msgid "Enable Product Subtitles"
44
  msgstr ""
45
 
46
+ #: plugin/includes/compat/woocommerce.php:110
47
  msgid "Add subtitle field to product edit screen"
48
  msgstr ""
49
 
50
+ #: plugin/includes/compat/woocommerce.php:117
51
  msgid "Subtitle Display"
52
  msgstr ""
53
 
54
+ #: plugin/includes/compat/woocommerce.php:118
55
  msgid "Show on single product pages"
56
  msgstr ""
57
 
58
+ #: plugin/includes/compat/woocommerce.php:126
59
  msgid "Show on product archives"
60
  msgstr ""
plugin/plugin.php CHANGED
@@ -18,6 +18,7 @@ include_once( WPSUBTITLE_DIR . 'includes/deprecated.php' );
18
  include_once( WPSUBTITLE_DIR . 'includes/shortcode.php' );
19
  include_once( WPSUBTITLE_DIR . 'includes/rest.php' );
20
  include_once( WPSUBTITLE_DIR . 'includes/compat/wordpress-seo.php' );
 
21
  include_once( WPSUBTITLE_DIR . 'includes/compat/woocommerce.php' );
22
 
23
  // Include admin-only functionality
@@ -64,6 +65,15 @@ class WPSubtitle {
64
  */
65
  private static $wpseo = null;
66
 
 
 
 
 
 
 
 
 
 
67
  /**
68
  * WooCommerce
69
  *
@@ -83,6 +93,7 @@ class WPSubtitle {
83
  self::$api = new WP_Subtitle_API();
84
  self::$rest = new WPSubtitle_REST();
85
  self::$wpseo = new WPSubtitle_WPSEO();
 
86
  self::$woocommerce = new WPSubtitle_WooCommerce();
87
 
88
  self::$api->setup_hooks();
18
  include_once( WPSUBTITLE_DIR . 'includes/shortcode.php' );
19
  include_once( WPSUBTITLE_DIR . 'includes/rest.php' );
20
  include_once( WPSUBTITLE_DIR . 'includes/compat/wordpress-seo.php' );
21
+ include_once( WPSUBTITLE_DIR . 'includes/compat/seopress.php' );
22
  include_once( WPSUBTITLE_DIR . 'includes/compat/woocommerce.php' );
23
 
24
  // Include admin-only functionality
65
  */
66
  private static $wpseo = null;
67
 
68
+ /**
69
+ * SEOPress (plugin compatibility)
70
+ *
71
+ * @since 3.4
72
+ *
73
+ * @var WPSubtitle_SEOPress|null
74
+ */
75
+ private static $seopress = null;
76
+
77
  /**
78
  * WooCommerce
79
  *
93
  self::$api = new WP_Subtitle_API();
94
  self::$rest = new WPSubtitle_REST();
95
  self::$wpseo = new WPSubtitle_WPSEO();
96
+ self::$seopress = new WPSubtitle_SEOPress();
97
  self::$woocommerce = new WPSubtitle_WooCommerce();
98
 
99
  self::$api->setup_hooks();
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: subtitle, content, title, subheading, subhead, alternate title
5
  Requires at least: 3.7
6
  Tested up to: 5.3.2
7
- Stable tag: 3.3.1
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.txt
10
 
@@ -85,15 +85,15 @@ Subtitles can automatically be added to your WooCommerce products without needin
85
  - Display the subtitle on single product pages
86
  - Display the subtitle on product archives (category pages)
87
 
88
- = Yoast SEO Plugin Support =
89
 
90
- The plugin allows you to include the subtitle in your Yoast SEO meta titles and descriptions.
91
 
92
  Similar to the Yoast `%%title%%` placeholder which inserts the post title, you can use `%%wps_subtitle%%`.
93
 
94
  There are also addition placeholders and filters to allow to to customize seperators for the subtitle.
95
 
96
- For more information, [view the Yoast SEO documentation here](https://github.com/benhuson/wp-subtitle/wiki/Yoast-SEO-Plugin-Support).
97
 
98
  == Installation ==
99
 
@@ -153,6 +153,10 @@ The plugin is [hosted on GitHub](https://github.com/benhuson/wp-subtitle) and pu
153
 
154
  == Changelog ==
155
 
 
 
 
 
156
  = 3.3.1 =
157
  * Fixed broken closing H2 tag for WooCommerce subtitle. Props @faktorvier.
158
 
@@ -250,6 +254,9 @@ The plugin is [hosted on GitHub](https://github.com/benhuson/wp-subtitle) and pu
250
 
251
  == Upgrade Notice ==
252
 
 
 
 
253
  = 3.3.1 =
254
  Fixed broken closing H2 tag for WooCommerce subtitle.
255
 
4
  Tags: subtitle, content, title, subheading, subhead, alternate title
5
  Requires at least: 3.7
6
  Tested up to: 5.3.2
7
+ Stable tag: 3.4
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.txt
10
 
85
  - Display the subtitle on single product pages
86
  - Display the subtitle on product archives (category pages)
87
 
88
+ = Yoast SEO and SEOPress Plugin Support =
89
 
90
+ The plugin allows you to include the subtitle in your meta titles and descriptions via the [Yoast SEO](https://wordpress.org/plugins/wordpress-seo/) and [SEOPress](https://wordpress.org/plugins/wp-seopress/) plugins.
91
 
92
  Similar to the Yoast `%%title%%` placeholder which inserts the post title, you can use `%%wps_subtitle%%`.
93
 
94
  There are also addition placeholders and filters to allow to to customize seperators for the subtitle.
95
 
96
+ For more information, [view the SEO support documentation here](https://github.com/benhuson/wp-subtitle/wiki/Yoast-SEO-Plugin-Support).
97
 
98
  == Installation ==
99
 
153
 
154
  == Changelog ==
155
 
156
+ = 3.4 =
157
+ * Added support for the SEOPress plugin. Props @chriselkins.
158
+ * You can now update the subtitle via the REST API. Props @chriselkins.
159
+
160
  = 3.3.1 =
161
  * Fixed broken closing H2 tag for WooCommerce subtitle. Props @faktorvier.
162
 
254
 
255
  == Upgrade Notice ==
256
 
257
+ = 3.4 =
258
+ Added support for the SEOPress plugin and updating the subtitle via the REST API.
259
+
260
  = 3.3.1 =
261
  Fixed broken closing H2 tag for WooCommerce subtitle.
262
 
wp-subtitle.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: WP Subtitle
5
  Plugin URI: http://wordpress.org/plugins/wp-subtitle/
6
  Description: Adds a subtitle field to pages and posts. Possible to add support for custom post types.
7
- Version: 3.3.1
8
  Author: Ben Huson, Husani Oakley
9
  Author URI: https://github.com/benhuson/wp-subtitle
10
  License: GPLv2
4
  Plugin Name: WP Subtitle
5
  Plugin URI: http://wordpress.org/plugins/wp-subtitle/
6
  Description: Adds a subtitle field to pages and posts. Possible to add support for custom post types.
7
+ Version: 3.4
8
  Author: Ben Huson, Husani Oakley
9
  Author URI: https://github.com/benhuson/wp-subtitle
10
  License: GPLv2