Version Description
Download this release
Release Info
Developer | prasadkirpekar |
Plugin | WP Meta and Date Remover |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.2.0
- admin/options.php +29 -0
- readme.txt +35 -15
- wp-meta-and-date-remover.php +98 -19
admin/options.php
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<div class='wrap'>
|
3 |
+
<h2>WP meta and Date Remover<span style="float:right;text-decoration:underline;"><a href="https://www.fiverr.com/prasadkirpekar/customize-your-theme-css">Buy Premium support</a></span></h2>
|
4 |
+
|
5 |
+
<form method='post' action=<?php echo $action_url ?>>
|
6 |
+
|
7 |
+
<input type="hidden" name="submitted" value="1" />
|
8 |
+
<table class="form-table">
|
9 |
+
<tr>
|
10 |
+
<th>Disable PHP removal<p>Plugin will not remove Meta and Date information from source code</p></th>
|
11 |
+
<td><input type="checkbox" value="1" <?php if(get_option('wpmdr_disable_php')=="1") echo "checked='checked'" ;?> name="wpmdr_disable_php"/></td>
|
12 |
+
</tr>
|
13 |
+
<tr>
|
14 |
+
<th>Disable CSS removal<p>Plugin will not hide Meta data classes of theme</p></th>
|
15 |
+
<td><input type="checkbox" value="1" <?php if(get_option('wpmdr_disable_css')=="1") echo "checked='checked'" ;?> name="wpmdr_disable_css"/></td>
|
16 |
+
</tr>
|
17 |
+
<tr>
|
18 |
+
<th>Customize CSS<p>This is CSS used to hide Meta data classes of theme</p></th>
|
19 |
+
<td><textarea style="width:50%;height:200px;" name='wpmdr_css'><?php echo $css; ?></textarea></td>
|
20 |
+
</tr>
|
21 |
+
<tr>
|
22 |
+
<td><?php submit_button(); ?></td>
|
23 |
+
<td></td>
|
24 |
+
</tr>
|
25 |
+
|
26 |
+
</table>
|
27 |
+
</form>
|
28 |
+
<p> <a href="https://wordpress.org/support/view/plugin-reviews/wp-meta-and-date-remover?rate=5#postform">Vote up this plugin</a></p>
|
29 |
+
</div>
|
readme.txt
CHANGED
@@ -3,44 +3,64 @@ Contributors: Prasad Kirpekar
|
|
3 |
Donate link: -
|
4 |
Tags: free,theme,meta,date,author, website, posts, pages, metadata, post, home page, remover, entry-meta, css,front page
|
5 |
Requires at least: 3.0.1
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.
|
8 |
stable.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
-
Remove meta information from posts and pages. Just
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
-
WP meta and date remover
|
17 |
-
|
18 |
-
plugin uses two methods to
|
19 |
-
You also can
|
20 |
|
|
|
21 |
|
22 |
-
1. Install the plugin from the plugins directory, or upload the wp-meta-and-date-remove folder to the `/wp-content/plugins/` directory.
|
23 |
-
2. Activate the plugin through the 'Plugins' menu in WordPress
|
24 |
|
25 |
|
26 |
== Contact me ==
|
27 |
-
|
|
|
28 |
== Frequently Asked Questions ==
|
29 |
|
30 |
= Meta data is still present even after activation.
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
|
35 |
== Screenshots ==
|
36 |
|
37 |
-
1.
|
38 |
-
2.
|
|
|
39 |
|
40 |
== Changelog ==
|
|
|
|
|
|
|
|
|
41 |
|
42 |
1.1.0
|
43 |
-
Improved previous css code.
|
44 |
-
Added new php based method to filter meta information.
|
45 |
|
|
|
|
|
|
|
|
|
46 |
|
|
3 |
Donate link: -
|
4 |
Tags: free,theme,meta,date,author, website, posts, pages, metadata, post, home page, remover, entry-meta, css,front page
|
5 |
Requires at least: 3.0.1
|
6 |
+
Tested up to: 4.5
|
7 |
+
Stable tag: 1.2.0
|
8 |
stable.
|
9 |
License: GPLv3
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
12 |
+
Remove meta author and date information from posts and pages. Hide from Humans and Search engines. Just Install and Activate.
|
13 |
|
14 |
== Description ==
|
15 |
|
16 |
+
WP meta and date remover removes meta information such as Date,time and Author from posts and pages.
|
17 |
+
This plugin designed to work on almost all thems including standard free thems,bootstrap based themes,premium themes and even themes created by custom drag drop editors.
|
18 |
+
This plugin uses two methods to erase your meta
|
19 |
+
<h2>Removal using CSS file</h2>Plugin register custom CSS which hides any information contained by meda data class. CSS file provided with this plugin works great. You also can edit that file in plugin editor. For more support [Buy premium support](https://www.fiverr.com/prasadkirpekar/customize-your-theme-css).<br/>
|
20 |
|
21 |
+
<h2>Removal using php</h2>Plugin filters results of functions like get_date(),get_time() etc. In some cases CSS file doesn't work, thats why there is removal using php code. Plugin removes Meta data from source code. Which means even search engines can't see it.
|
22 |
|
|
|
|
|
23 |
|
24 |
|
25 |
== Contact me ==
|
26 |
+
https://twitter.com/kirpekarprasad or [email me](mailto:prasadkirpekar@outlook.com)
|
27 |
+
|
28 |
== Frequently Asked Questions ==
|
29 |
|
30 |
= Meta data is still present even after activation.
|
31 |
+
Follow the [this](https://geekyprogramming.wordpress.com/2015/06/12/wordpress-meta-removal-guide/) link. or Contack me on [twitter] (https://twitter.com/kirpekarprasad) or [email me](mailto:prasadkirpekar@outlook.com).
|
32 |
+
|
33 |
+
|
34 |
+
= Search engine showing Meta data even after plugin activation.
|
35 |
+
Search engines doesn't react to changes instantaly. Search engines will take some time. Resubmit your sitemap in webmaster tools.
|
36 |
+
|
37 |
|
38 |
+
== Installation ==
|
39 |
+
|
40 |
+
Use built in automatic installer or,
|
41 |
+
|
42 |
+
1. Copy the plugin folder into /wp-content/plugins
|
43 |
+
2. Activate plugin via the plugins page in the WordPress admin
|
44 |
+
3. Go to Settings to configure.
|
45 |
|
46 |
|
47 |
== Screenshots ==
|
48 |
|
49 |
+
1. Settings Window
|
50 |
+
2. Before activation
|
51 |
+
3. After activation
|
52 |
|
53 |
== Changelog ==
|
54 |
+
1.2.0
|
55 |
+
|
56 |
+
* Improved both CSS and PHP removal
|
57 |
+
* Added admin menu page for manual configuration.
|
58 |
|
59 |
1.1.0
|
|
|
|
|
60 |
|
61 |
+
* Improved previous css code.
|
62 |
+
* Added new php based method to filter meta information.
|
63 |
+
|
64 |
+
1.0.0
|
65 |
|
66 |
+
* Initial release with css based meta removal.
|
wp-meta-and-date-remover.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
/*
|
3 |
Plugin Name: WP Meta and date remover
|
4 |
Plugin URI: http://www.practicalprogrammers.net/wp-meta-remove-plugin
|
5 |
-
Description:
|
6 |
-
Version: 1.
|
7 |
Author: Prasad Kirepkar
|
8 |
-
Author URI: http://
|
9 |
License: GPL v2
|
10 |
Copyright: Prasad Kirepkar
|
11 |
|
@@ -25,34 +25,113 @@ Copyright: Prasad Kirepkar
|
|
25 |
*/
|
26 |
|
27 |
function extra_links($links){
|
28 |
-
$
|
29 |
-
|
|
|
|
|
|
|
|
|
30 |
return $links;
|
31 |
}
|
32 |
$plugin = plugin_basename(__FILE__);
|
33 |
|
34 |
//Removal using css
|
35 |
-
|
36 |
-
{
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
// removal using php.
|
42 |
//some times css removal don't work for every theme.
|
43 |
function remove_meta_php() {
|
44 |
-
|
45 |
-
|
46 |
-
add_filter('
|
47 |
-
add_filter('
|
48 |
-
add_filter('
|
49 |
-
add_filter('
|
50 |
-
add_filter('
|
51 |
-
add_filter('
|
52 |
-
add_filter('
|
|
|
|
|
|
|
53 |
}
|
54 |
|
55 |
//do everything
|
56 |
-
|
|
|
|
|
57 |
add_filter("plugin_action_links_$plugin", 'extra_links' );
|
58 |
add_action('loop_start', 'remove_meta_php');
|
|
2 |
/*
|
3 |
Plugin Name: WP Meta and date remover
|
4 |
Plugin URI: http://www.practicalprogrammers.net/wp-meta-remove-plugin
|
5 |
+
Description: Remove Meta information such as Author and Date from posts and pages.
|
6 |
+
Version: 1.2.0
|
7 |
Author: Prasad Kirepkar
|
8 |
+
Author URI: http://twitter.com.com/kirpekarprasad
|
9 |
License: GPL v2
|
10 |
Copyright: Prasad Kirepkar
|
11 |
|
25 |
*/
|
26 |
|
27 |
function extra_links($links){
|
28 |
+
$fiverr="https://www.fiverr.com/prasadkirpekar/customize-your-theme-css";
|
29 |
+
$setting_link = '<a href="../wp-admin/options-general.php?page=wp-meta-and-date-remover.php">Settings</a>';
|
30 |
+
$five_star='<a href="https://wordpress.org/support/view/plugin-reviews/wp-meta-and-date-remover?rate=5#postform">Vote up</a>';
|
31 |
+
array_unshift($links, $setting_link);
|
32 |
+
array_unshift($links, $five_star);
|
33 |
+
array_unshift($links, $fiverr);
|
34 |
return $links;
|
35 |
}
|
36 |
$plugin = plugin_basename(__FILE__);
|
37 |
|
38 |
//Removal using css
|
39 |
+
|
40 |
+
function inline_style_(){
|
41 |
+
if(get_option('wpmdr_disable_css')=="0"){
|
42 |
+
echo "<style>/* CSS added by WP Meta and Date Remover*/".get_option('wpmdr_css')."</style>";
|
43 |
+
}
|
44 |
+
}
|
45 |
+
function wp_meta_settings()
|
46 |
+
{
|
47 |
+
$css=get_option('wpmdr_css');
|
48 |
+
$disable_php=get_option('wpmdr_disable_php');
|
49 |
+
$disable_css=get_option('wpmdr_disable_css');
|
50 |
+
if(isset($_POST['submitted']))
|
51 |
+
{
|
52 |
+
if(isset($_POST['wpmdr_css']))
|
53 |
+
{
|
54 |
+
$css=$_POST['wpmdr_css'];
|
55 |
+
}
|
56 |
+
if(isset($_POST['wpmdr_disable_php']))
|
57 |
+
{
|
58 |
+
$disable_php="1";
|
59 |
+
}
|
60 |
+
else{
|
61 |
+
$disable_php="0";
|
62 |
+
}
|
63 |
+
if(isset($_POST['wpmdr_disable_css']))
|
64 |
+
{
|
65 |
+
$disable_css="1";
|
66 |
+
}
|
67 |
+
else{
|
68 |
+
$disable_css="0";
|
69 |
+
}
|
70 |
+
|
71 |
+
update_option('wpmdr_css',$css);
|
72 |
+
update_option('wpmdr_disable_php',$disable_php);
|
73 |
+
update_option('wpmdr_disable_css',$disable_css);
|
74 |
+
echo '<div class="updated fade"><p>Settings Saved! </p></div>';
|
75 |
+
}
|
76 |
+
$action_url = $_SERVER['REQUEST_URI'];
|
77 |
+
include "admin/options.php";
|
78 |
+
}
|
79 |
+
function register_wpmdr_settings()
|
80 |
+
{
|
81 |
+
register_setting( 'wpmdr_css', 'wpmdr_css' );
|
82 |
+
|
83 |
}
|
84 |
+
function admin_settings()
|
85 |
+
{
|
86 |
+
add_options_page('WP Meta and Date Remover', 'WP Meta and Date Remover', 10, basename(__FILE__), 'wp_meta_settings');
|
87 |
+
|
88 |
+
}
|
89 |
+
function init_option(){
|
90 |
+
$css="/* Remove meta from post */
|
91 |
+
.entry-meta {
|
92 |
+
display:none !important;
|
93 |
+
}
|
94 |
+
|
95 |
+
/* Remove meta from home page */
|
96 |
+
.home .entry-meta {
|
97 |
+
display: none;
|
98 |
+
}
|
99 |
+
/* WPTheme 2015 Metadata Removal */
|
100 |
+
.entry-footer {
|
101 |
+
display:none !important;
|
102 |
+
}
|
103 |
+
|
104 |
+
/* WPTheme 2015 Metadata Removal */
|
105 |
+
.home .entry-footer {
|
106 |
+
display: none;
|
107 |
+
}";
|
108 |
+
add_option('wpmdr_css',$css);
|
109 |
+
add_option('wpmdr_disable_php',"0");
|
110 |
+
add_option('wpmdr_disable_css',"0");
|
111 |
+
}
|
112 |
+
|
113 |
|
114 |
// removal using php.
|
115 |
//some times css removal don't work for every theme.
|
116 |
function remove_meta_php() {
|
117 |
+
if(get_option('wpmdr_disable_php')=="0"){
|
118 |
+
|
119 |
+
add_filter('the_date', '__return_false');
|
120 |
+
add_filter('the_author', '__return_false');
|
121 |
+
add_filter('the_time', '__return_false');
|
122 |
+
add_filter('the_modified_date', '__return_false');
|
123 |
+
add_filter('get_the_date', '__return_false');
|
124 |
+
add_filter('get_the_author', '__return_false');
|
125 |
+
add_filter('get_the_title', '__return_false');
|
126 |
+
add_filter('get_the_time', '__return_false');
|
127 |
+
add_filter('get_the_modified_date', '__return_false');
|
128 |
+
}
|
129 |
}
|
130 |
|
131 |
//do everything
|
132 |
+
register_activation_hook(__FILE__, 'init_option');
|
133 |
+
|
134 |
+
add_action('wp_head','inline_style_');
|
135 |
add_filter("plugin_action_links_$plugin", 'extra_links' );
|
136 |
add_action('loop_start', 'remove_meta_php');
|
137 |
+
add_action('admin_menu','admin_settings');
|