Version Description
- Fixed the issue due tof which the 'Space X-Chimp' sub menu item in the brand menu item was displayed.
- Added branded footer text on the plugin's settings page.
- Text of copyright in the output code is updated.
Download this release
Release Info
Developer | Arthur Gareginyan |
Plugin | All Meta Tags |
Version | 4.10 |
Comparing to | |
See all releases |
Code changes from version 4.9 to 4.10
- all-meta-tags.php +1 -1
- inc/php/core.php +35 -0
- inc/php/functional.php +2 -2
- readme.txt +6 -1
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.
|
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.10
|
9 |
* License: GPL3
|
10 |
* Text Domain: all-meta-tags
|
11 |
* Domain Path: /languages/
|
inc/php/core.php
CHANGED
@@ -79,6 +79,20 @@ function spacexchimp_p004_register_submenu_page() {
|
|
79 |
}
|
80 |
add_action( 'admin_menu', 'spacexchimp_p004_register_submenu_page' );
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
/**
|
83 |
* Register settings
|
84 |
*/
|
@@ -87,3 +101,24 @@ function spacexchimp_p004_register_settings() {
|
|
87 |
register_setting( SPACEXCHIMP_P004_SETTINGS . '_settings_group_si', SPACEXCHIMP_P004_SETTINGS . '_service_info' );
|
88 |
}
|
89 |
add_action( 'admin_init', 'spacexchimp_p004_register_settings' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
*/
|
101 |
register_setting( SPACEXCHIMP_P004_SETTINGS . '_settings_group_si', SPACEXCHIMP_P004_SETTINGS . '_service_info' );
|
102 |
}
|
103 |
add_action( 'admin_init', 'spacexchimp_p004_register_settings' );
|
104 |
+
|
105 |
+
/**
|
106 |
+
* Branded footer text on the plugin's settings page
|
107 |
+
*/
|
108 |
+
function spacexchimp_p004_admin_footer_text() {
|
109 |
+
|
110 |
+
// Get current screen data
|
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
|
118 |
+
function spacexchimp_p004_new_admin_footer_text() {
|
119 |
+
$year = date('Y');
|
120 |
+
return "Copyright © " . $year . " <a href='https://www.spacexchimp.com' target='_blank'>Space X-Chimp</a> Studio | Click <a href='https://www.spacexchimp.com/store.html' target='_blank'>here</a> to see my other products.";
|
121 |
+
}
|
122 |
+
add_filter( 'admin_footer_text', 'spacexchimp_p004_new_admin_footer_text', 11 );
|
123 |
+
}
|
124 |
+
add_action( 'current_screen', 'spacexchimp_p004_admin_footer_text' );
|
inc/php/functional.php
CHANGED
@@ -159,8 +159,8 @@ function spacexchimp_p004_add_meta_tags() {
|
|
159 |
|
160 |
// Add comment
|
161 |
if ( count( $metatags_arr ) > 0 ) {
|
162 |
-
array_unshift( $metatags_arr, "<!-- [BEGIN] Metadata added via
|
163 |
-
array_push( $metatags_arr, "<!-- [END] Metadata added via
|
164 |
}
|
165 |
|
166 |
// Return the content of array
|
159 |
|
160 |
// Add comment
|
161 |
if ( count( $metatags_arr ) > 0 ) {
|
162 |
+
array_unshift( $metatags_arr, "<!-- [BEGIN] Metadata added via All-Meta-Tags plugin by Space X-Chimp Studio ( https://www.spacexchimp.com ) -->" );
|
163 |
+
array_push( $metatags_arr, "<!-- [END] Metadata added via All-Meta-Tags plugin by Space X-Chimp Studio ( https://www.spacexchimp.com ) -->" );
|
164 |
}
|
165 |
|
166 |
// Return the content of array
|
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.
|
8 |
License: GPL3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -195,6 +195,11 @@ Commercial licensing (e.g. for projects that can’t use an open-source license)
|
|
195 |
|
196 |
== Changelog ==
|
197 |
|
|
|
|
|
|
|
|
|
|
|
198 |
= 4.9 =
|
199 |
* Added the top level menu item of the brand.
|
200 |
* The submenu item of the plugin has moved to the menu item of the brand.
|
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 |
|
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.
|
201 |
+
* Text of copyright in the output code is updated.
|
202 |
+
|
203 |
= 4.9 =
|
204 |
* Added the top level menu item of the brand.
|
205 |
* The submenu item of the plugin has moved to the menu item of the brand.
|