Changeset 1796169
- Timestamp:
- 01/03/2018 03:45:19 AM (8 years ago)
- Location:
- hide-post/trunk
- Files:
-
- 1 added
- 1 deleted
- 2 edited
-
.gitignore (added)
-
CHANGELOG.md (deleted)
-
hide-post.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hide-post/trunk/hide-post.php
r1796166 r1796169 2 2 /* 3 3 Plugin Name: Hide Post 4 Plugin URI: http://doppos.com/ 5 Version: 1.0.2 4 Plugin URI: https://github.com/emanuelpoletto/hide-post/ 6 5 Description: Hide a post everywhere except when accessed directly. 6 Version: 1.0.0 7 7 Author: Emanuel Poletto 8 Author URI: http://emanuelpoletto.com/ 8 Author URI: https://emanuelpoletto.com/ 9 License: GPLv2 or later 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 9 11 Text Domain: hide-post 10 License: GPLv2 or later11 12 */ 12 13 13 14 /* 14 Copyright 2015-2016 Emanuel Poletto / Doppos (email: contato@doppos.com) 15 16 This file is part of Hide Post. 17 18 Hide Post is free software: you can redistribute it and/or modify 15 Copyright Emanuel Poletto. 16 17 This program is free software: you can redistribute it and/or modify 19 18 it under the terms of the GNU General Public License as published by 20 the Free Software Foundation, either version 3of the License, or19 the Free Software Foundation, either version 2 of the License, or 21 20 (at your option) any later version. 22 21 23 Hide Postis distributed in the hope that it will be useful,22 This program is distributed in the hope that it will be useful, 24 23 but WITHOUT ANY WARRANTY; without even the implied warranty of 25 24 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 27 26 28 27 You should have received a copy of the GNU General Public License 29 along with Hide Post. If not, see <http://www.gnu.org/licenses/>.28 along with this program. If not, see <https://www.gnu.org/licenses/>. 30 29 */ 31 30 … … 52 51 } 53 52 54 static function initialize() {53 public static function initialize() { 55 54 if ( null == self::$instance ) { 56 55 self::$instance = new self; … … 60 59 public function register_taxonomy() { 61 60 $args = array( 62 'public' => false,63 'hierarchical' => true,64 'label' => __( 'Post Visibility', 'hide-post' ),65 'rewrite' => false,66 'show_admin_column' => true,67 'show_in_menu' => false,68 'show_in_nav_menus' => false,69 'show_in_quick_edit' => true,70 'show_tagcloud' => false,71 'meta_box_cb' => false, // array( $this, 'render_meta_box_content' ),72 /*'capabilities' => array(73 'manage_terms' => '', //'manage_categories',74 'edit_terms' => '', //'manage_categories',75 'delete_terms' => '', //'manage_categories',76 'assign_terms' => 'edit_posts',61 'public' => false, 62 'hierarchical' => true, 63 'label' => __( 'Post Visibility', 'hide-post' ), 64 'rewrite' => false, 65 'show_admin_column' => true, 66 'show_in_menu' => false, 67 'show_in_nav_menus' => false, 68 'show_in_quick_edit' => true, 69 'show_tagcloud' => false, 70 'meta_box_cb' => false, // array( $this, 'render_meta_box_content' ), 71 /*'capabilities' => array( 72 'manage_terms' => '', //'manage_categories', 73 'edit_terms' => '', //'manage_categories', 74 'delete_terms' => '', //'manage_categories', 75 'assign_terms' => 'edit_posts', 77 76 ),*/ 78 77 ); -
hide-post/trunk/readme.txt
r1796166 r1796169 1 === Hide Post === 1 # Hide Post 2 2 3 Contributors: emanuelpoletto 3 4 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3S9RPEFELV66Q 4 Tags: hide, post, simple 5 Requires at least: 3.0.1 6 Tested up to: 4.5.3 7 Stable tag: 1.0.2 5 Tags: hide, post, simple, privacy, show, visibility 6 Requires at least: 3.0 7 Tested up to: 4.9.1 8 Requires PHP: 5.2.4 9 Stable tag: 1.0.0 8 10 License: GPLv2 or later 9 License URI: http ://www.gnu.org/licenses/gpl-2.0.html11 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 12 11 13 Hide a post everywhere except when accessed directly. 12 14 13 == Description == 15 ## Description 14 16 15 17 Hide a post everywhere except when accessed directly. 16 18 17 == Installation == 19 Once installed and activated this plugin, all you have to do to turn any post "Visible" or "Hidden" is to check your option in the "Post Visibility" meta box on the edit post screen. 20 21 That's it :D 22 23 Initially, every post is "Visible" by default. 24 25 You can also change one or more posts visibility at a time using the quick edit WordPress native feature. 26 27 Just remember that a hidden post is still visible when accessed directly through its permalink. The purpose of this plugin is to hide posts from being listed or shown anywhere else but their single URLs. 28 29 For SEO purposes, **Hide Post** also adds a meta tag asking robots to not follow nor index hidden posts. It uses `wp_head` WordPress hook for adding this `<meta name="robots" content="noindex, nofollow">` to each hidden post `<head>`. 30 31 First, I've created this plugin just for my own use in one of my projects. Then I've thought maybe it would be helpfull for someone else, what led me to share it here. If you have any questions and/or suggestions, let me know in the [Support Forum]. 32 33 If **Hide Post** helped you somehow, remember to leave some stars and optionally a [review here](https://wordpress.org/support/plugin/hide-post/reviews/) ;) 34 35 And if you've found a bug or are having some problems with it, I'll be glad to help you, mainly in the [Support Forum]. 36 37 --- 38 39  40 41 ## Installation 18 42 19 43 This section describes how to install the plugin and get it working. 20 44 21 45 1. Upload the plugin files to the `/wp-content/plugins/hide-post` directory, or install the plugin through the WordPress plugins screen directly. 22 2. Activate the plugin through the 'Plugins' screen in WordPress 46 2. Activate the plugin through the 'Plugins' screen in WordPress. 23 47 24 == Changelog == 48 ## Changelog 25 49 26 = 1.0.2 = 27 * Create README and CHANGELOG files.50 ### 1.0.0 51 * First release. 28 52 29 = 1.0.1 = 30 * Add plugin name in the readme.txt file. 31 32 = 1.0.0 = 33 * First release. 53 [Support Forum]: https://wordpress.org/support/plugin/hide-post/
Note: See TracChangeset
for help on using the changeset viewer.