All Meta Tags - Version 4.11

Version Description

  • At the request of some users, plugin settings page moved to the submenu item in the top-level menu item "Settings", like before.
Download this release

Release Info

Developer Arthur Gareginyan
Plugin Icon 128x128 All Meta Tags
Version 4.11
Comparing to
See all releases

Code changes from version 4.10 to 4.11

all-meta-tags.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Easily and safely add your custom Meta Tags to WordPress website's header.
6
  * Author: Arthur Gareginyan
7
  * Author URI: https://www.arthurgareginyan.com
8
- * Version: 4.10
9
  * License: GPL3
10
  * Text Domain: all-meta-tags
11
  * Domain Path: /languages/
5
  * Description: Easily and safely add your custom Meta Tags to WordPress website's header.
6
  * Author: Arthur Gareginyan
7
  * Author URI: https://www.arthurgareginyan.com
8
+ * Version: 4.11
9
  * License: GPL3
10
  * Text Domain: all-meta-tags
11
  * Domain Path: /languages/
inc/php/core.php CHANGED
@@ -20,7 +20,7 @@ add_action( 'init', 'spacexchimp_p004_textdomain' );
20
  * and inserts a link to the plugin admin page
21
  */
22
  function spacexchimp_p004_settings_link( $links ) {
23
- $page = '<a href="' . admin_url( 'admin.php?page=spacexchimp/' . SPACEXCHIMP_P004_SLUG ) .'">' . __( 'Settings', SPACEXCHIMP_P004_TEXT ) . '</a>';
24
  array_unshift( $links, $page );
25
  return $links;
26
  }
@@ -44,55 +44,20 @@ function spacexchimp_p004_plugin_row_meta( $links, $file ) {
44
  add_filter( 'plugin_row_meta', 'spacexchimp_p004_plugin_row_meta', 10, 2 );
45
 
46
  /**
47
- * Register brand menu item in the Admin Menu
48
- */
49
- function spacexchimp_p004_register_admin_menu() {
50
-
51
- // Return if the brand menu item is already existed
52
- if ( !empty ( $GLOBALS['admin_page_hooks']['spacexchimp'] ) ) return;
53
-
54
- $page_title = 'Space X-Chimp';
55
- $menu_title = 'Space X-Chimp';
56
- $capability = 'manage_options';
57
- $menu_slug = 'spacexchimp';
58
- $function = null;
59
- $icon_url = 'dashicons-star-filled';
60
- $position = 66;
61
-
62
- add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position );
63
- }
64
- add_action( 'admin_menu', 'spacexchimp_p004_register_admin_menu' );
65
-
66
- /**
67
- * Register plugin's submenu item in the brand menu item
68
  */
69
  function spacexchimp_p004_register_submenu_page() {
70
 
71
- $parent_slug = 'spacexchimp';
72
  $page_title = SPACEXCHIMP_P004_NAME;
73
  $menu_title = __( 'Meta Tags Inserter', SPACEXCHIMP_P004_TEXT );
74
  $capability = 'manage_options';
75
- $menu_slug = 'spacexchimp/' . SPACEXCHIMP_P004_SLUG;
76
  $function = 'spacexchimp_p004_render_submenu_page';
77
 
78
- add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function);
79
  }
80
  add_action( 'admin_menu', 'spacexchimp_p004_register_submenu_page' );
81
 
82
- /**
83
- * Remove the 'Space X-Chimp' sub menu item in the brand menu item
84
- */
85
- function spacexchimp_p004_remove_submenu_item() {
86
-
87
- // Read global variable
88
- global $submenu;
89
-
90
- if ( isset( $submenu['spacexchimp'] ) ) {
91
- unset( $submenu['spacexchimp'][0] );
92
- }
93
- }
94
- add_action( 'admin_menu', 'spacexchimp_p004_remove_submenu_item' );
95
-
96
  /**
97
  * Register settings
98
  */
@@ -111,7 +76,7 @@ function spacexchimp_p004_admin_footer_text() {
111
  $current_screen = get_current_screen();
112
 
113
  // Return if the page is not a settings page of this plugin
114
- $settings_page = 'space-x-chimp_page_spacexchimp/' . SPACEXCHIMP_P004_SLUG;
115
  if ( $settings_page != $current_screen->id ) return;
116
 
117
  // Filter footer text
20
  * and inserts a link to the plugin admin page
21
  */
22
  function spacexchimp_p004_settings_link( $links ) {
23
+ $page = '<a href="' . admin_url( 'options-general.php?page=' . SPACEXCHIMP_P004_SLUG . '.php' ) .'">' . __( 'Settings', SPACEXCHIMP_P004_TEXT ) . '</a>';
24
  array_unshift( $links, $page );
25
  return $links;
26
  }
44
  add_filter( 'plugin_row_meta', 'spacexchimp_p004_plugin_row_meta', 10, 2 );
45
 
46
  /**
47
+ * Register a submenu item in the top-level menu item "Settings"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  */
49
  function spacexchimp_p004_register_submenu_page() {
50
 
 
51
  $page_title = SPACEXCHIMP_P004_NAME;
52
  $menu_title = __( 'Meta Tags Inserter', SPACEXCHIMP_P004_TEXT );
53
  $capability = 'manage_options';
54
+ $menu_slug = SPACEXCHIMP_P004_SLUG;
55
  $function = 'spacexchimp_p004_render_submenu_page';
56
 
57
+ add_options_page( $page_title, $menu_title, $capability, $menu_slug, $function );
58
  }
59
  add_action( 'admin_menu', 'spacexchimp_p004_register_submenu_page' );
60
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  /**
62
  * Register settings
63
  */
76
  $current_screen = get_current_screen();
77
 
78
  // Return if the page is not a settings page of this plugin
79
+ $settings_page = 'settings_page_' . SPACEXCHIMP_P004_SLUG;
80
  if ( $settings_page != $current_screen->id ) return;
81
 
82
  // Filter footer text
inc/php/enqueue.php CHANGED
@@ -16,7 +16,7 @@ function spacexchimp_p004_load_scripts_admin( $hook ) {
16
  $url = SPACEXCHIMP_P004_URL;
17
 
18
  // Return if the page is not a settings page of this plugin
19
- $settings_page = 'space-x-chimp_page_spacexchimp/' . $slug;
20
  if ( $settings_page != $hook ) return;
21
 
22
  // Load jQuery library
16
  $url = SPACEXCHIMP_P004_URL;
17
 
18
  // Return if the page is not a settings page of this plugin
19
+ $settings_page = 'settings_page_' . $slug;
20
  if ( $settings_page != $hook ) return;
21
 
22
  // Load jQuery library
inc/php/functional.php CHANGED
@@ -132,6 +132,7 @@ function spacexchimp_p004_add_meta_tags() {
132
 
133
  if ( is_product() ) {
134
 
 
135
  $name = get_the_title();
136
  $description = get_the_excerpt();
137
  $image = simplexml_load_string(get_the_post_thumbnail());
@@ -143,6 +144,7 @@ function spacexchimp_p004_add_meta_tags() {
143
  $price = get_post_meta( get_the_ID(), '_price', true);
144
  $currency = get_woocommerce_currency();
145
 
 
146
  $google_shopping = "<div itemtype='http://schema.org/Product' itemscope>
147
  <meta itemprop='name' content='$name'>
148
  <meta itemprop='description' content='$description'>
132
 
133
  if ( is_product() ) {
134
 
135
+ // Get product data
136
  $name = get_the_title();
137
  $description = get_the_excerpt();
138
  $image = simplexml_load_string(get_the_post_thumbnail());
144
  $price = get_post_meta( get_the_ID(), '_price', true);
145
  $currency = get_woocommerce_currency();
146
 
147
+ // Generate output code with product data
148
  $google_shopping = "<div itemtype='http://schema.org/Product' itemscope>
149
  <meta itemprop='name' content='$name'>
150
  <meta itemprop='description' content='$description'>
languages/all-meta-tags-es_ES.mo CHANGED
Binary file
languages/all-meta-tags-es_ES.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Plugins - All Meta Tags - Development (trunk)\n"
6
- "POT-Creation-Date: 2017-09-15 14:24+0300\n"
7
- "PO-Revision-Date: 2017-09-15 14:25+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "Language: es\n"
@@ -29,7 +29,7 @@ msgstr "Ajustes"
29
  msgid "Donate"
30
  msgstr "Donar"
31
 
32
- #: inc/php/core.php:73
33
  msgid "Meta Tags Inserter"
34
  msgstr "Meta Tags Inserter"
35
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Plugins - All Meta Tags - Development (trunk)\n"
6
+ "POT-Creation-Date: 2017-09-23 04:53+0300\n"
7
+ "PO-Revision-Date: 2017-09-23 04:53+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "Language: es\n"
29
  msgid "Donate"
30
  msgstr "Donar"
31
 
32
+ #: inc/php/core.php:52
33
  msgid "Meta Tags Inserter"
34
  msgstr "Meta Tags Inserter"
35
 
languages/all-meta-tags-es_MX.mo CHANGED
Binary file
languages/all-meta-tags-es_MX.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: All Meta Tags\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2017-09-15 14:25+0300\n"
6
- "PO-Revision-Date: 2017-09-15 14:25+0300\n"
7
  "Last-Translator: Sergio <srg2010@yahoo.com>\n"
8
  "Language-Team: \n"
9
  "Language: es_MX\n"
@@ -32,7 +32,7 @@ msgstr "Ajustes"
32
  msgid "Donate"
33
  msgstr "Donar"
34
 
35
- #: inc/php/core.php:73
36
  msgid "Meta Tags Inserter"
37
  msgstr "Meta Tags Inserter"
38
 
2
  msgstr ""
3
  "Project-Id-Version: All Meta Tags\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2017-09-23 04:53+0300\n"
6
+ "PO-Revision-Date: 2017-09-23 04:53+0300\n"
7
  "Last-Translator: Sergio <srg2010@yahoo.com>\n"
8
  "Language-Team: \n"
9
  "Language: es_MX\n"
32
  msgid "Donate"
33
  msgstr "Donar"
34
 
35
+ #: inc/php/core.php:52
36
  msgid "Meta Tags Inserter"
37
  msgstr "Meta Tags Inserter"
38
 
languages/all-meta-tags-it_IT.mo CHANGED
Binary file
languages/all-meta-tags-it_IT.po CHANGED
@@ -3,8 +3,8 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Plugins - All Meta Tags - Stable (latest release)\n"
6
- "POT-Creation-Date: 2017-09-15 14:25+0300\n"
7
- "PO-Revision-Date: 2017-09-15 14:25+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "Language: it\n"
@@ -29,7 +29,7 @@ msgstr "Impostazioni"
29
  msgid "Donate"
30
  msgstr "Dona"
31
 
32
- #: inc/php/core.php:73
33
  msgid "Meta Tags Inserter"
34
  msgstr "Meta Tags Inserter"
35
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Plugins - All Meta Tags - Stable (latest release)\n"
6
+ "POT-Creation-Date: 2017-09-23 04:53+0300\n"
7
+ "PO-Revision-Date: 2017-09-23 04:53+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
10
  "Language: it\n"
29
  msgid "Donate"
30
  msgstr "Dona"
31
 
32
+ #: inc/php/core.php:52
33
  msgid "Meta Tags Inserter"
34
  msgstr "Meta Tags Inserter"
35
 
languages/all-meta-tags-ru_RU.mo CHANGED
Binary file
languages/all-meta-tags-ru_RU.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: All Meta Tags\n"
4
- "POT-Creation-Date: 2017-09-15 14:25+0300\n"
5
- "PO-Revision-Date: 2017-09-15 14:25+0300\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: ru\n"
@@ -29,7 +29,7 @@ msgstr "Настройки"
29
  msgid "Donate"
30
  msgstr "Поддержать"
31
 
32
- #: inc/php/core.php:73
33
  msgid "Meta Tags Inserter"
34
  msgstr "Meta Tags Inserter"
35
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: All Meta Tags\n"
4
+ "POT-Creation-Date: 2017-09-23 04:53+0300\n"
5
+ "PO-Revision-Date: 2017-09-23 04:53+0300\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "Language: ru\n"
29
  msgid "Donate"
30
  msgstr "Поддержать"
31
 
32
+ #: inc/php/core.php:52
33
  msgid "Meta Tags Inserter"
34
  msgstr "Meta Tags Inserter"
35
 
languages/all-meta-tags.pot CHANGED
@@ -3,7 +3,7 @@ msgid ""
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: All Meta Tags\n"
6
- "POT-Creation-Date: 2017-09-15 14:07+0300\n"
7
  "PO-Revision-Date: 2015-10-28 13:57+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
@@ -28,7 +28,7 @@ msgstr ""
28
  msgid "Donate"
29
  msgstr ""
30
 
31
- #: inc/php/core.php:73
32
  msgid "Meta Tags Inserter"
33
  msgstr ""
34
 
3
  msgstr ""
4
  "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
5
  "Project-Id-Version: All Meta Tags\n"
6
+ "POT-Creation-Date: 2017-09-23 04:49+0300\n"
7
  "PO-Revision-Date: 2015-10-28 13:57+0300\n"
8
  "Last-Translator: \n"
9
  "Language-Team: \n"
28
  msgid "Donate"
29
  msgstr ""
30
 
31
+ #: inc/php/core.php:52
32
  msgid "Meta Tags Inserter"
33
  msgstr ""
34
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: meta, tag,tags, custom, simple, plugin, twitter, facebook, g+, google, goo
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
5
  Requires at least: 3.9
6
  Tested up to: 4.8
7
- Stable tag: 4.10
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -103,7 +103,7 @@ Manually via FTP access:
103
  4. Log into Admin Panel of your WordPress website.
104
  5. Activate this plugin through the "`Plugins`" tab.
105
 
106
- After installation and activation, the "`Meta Tags Inserter`" menu item will appear in the "`Space X-Chimp`" section of Admin Panel. Click on it in order to view the plugin settings page.
107
 
108
  [More help installing plugins](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins "WordPress Codex: Installing Plugins")
109
 
@@ -118,7 +118,7 @@ A. Yes. This plugin is ready for translation and has already been translated int
118
 
119
  = Q. How does it work? =
120
  A. Simply go to the plugin settings page, fill in the required fields, select the desired settings and click the "Save changes" button. Enjoy the improved SEO of your website. It's that simple!
121
- You can find the plugin settings page at "`WP Admin Panel`" -> "`Space X-Chimp`" -> "`Meta Tags Inserter`".
122
 
123
  = Q. How much of description I can enter in the text field? =
124
  A. I don't limit the number of characters, but most search engines use a maximum of 160 chars for the home description.
@@ -195,6 +195,9 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
195
 
196
  == Changelog ==
197
 
 
 
 
198
  = 4.10 =
199
  * Fixed the issue due tof which the 'Space X-Chimp' sub menu item in the brand menu item was displayed.
200
  * Added branded footer text on the plugin's settings page.
4
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8A88KC7TFF6CS
5
  Requires at least: 3.9
6
  Tested up to: 4.8
7
+ Stable tag: 4.11
8
  License: GPL3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
103
  4. Log into Admin Panel of your WordPress website.
104
  5. Activate this plugin through the "`Plugins`" tab.
105
 
106
+ After installation and activation, the "`Meta Tags Inserter`" menu item will appear in the "`Settings`" section of Admin Panel. Click on it in order to view the plugin settings page.
107
 
108
  [More help installing plugins](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins "WordPress Codex: Installing Plugins")
109
 
118
 
119
  = Q. How does it work? =
120
  A. Simply go to the plugin settings page, fill in the required fields, select the desired settings and click the "Save changes" button. Enjoy the improved SEO of your website. It's that simple!
121
+ You can find the plugin settings page at "`WP Admin Panel`" -> "`Settings`" -> "`Meta Tags Inserter`".
122
 
123
  = Q. How much of description I can enter in the text field? =
124
  A. I don't limit the number of characters, but most search engines use a maximum of 160 chars for the home description.
195
 
196
  == Changelog ==
197
 
198
+ = 4.11 =
199
+ * At the request of some users, plugin settings page moved to the submenu item in the top-level menu item "Settings", like before.
200
+
201
  = 4.10 =
202
  * Fixed the issue due tof which the 'Space X-Chimp' sub menu item in the brand menu item was displayed.
203
  * Added branded footer text on the plugin's settings page.