Plugin Directory

Changeset 1796169


Ignore:
Timestamp:
01/03/2018 03:45:19 AM (8 years ago)
Author:
emanuelpoletto
Message:

Clean up and prepare for the first release on wordpress.org.

Location:
hide-post/trunk
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • hide-post/trunk/hide-post.php

    r1796166 r1796169  
    22/*
    33Plugin Name: Hide Post
    4 Plugin URI: http://doppos.com/
    5 Version: 1.0.2
     4Plugin URI: https://github.com/emanuelpoletto/hide-post/
    65Description: Hide a post everywhere except when accessed directly.
     6Version: 1.0.0
    77Author: Emanuel Poletto
    8 Author URI: http://emanuelpoletto.com/
     8Author URI: https://emanuelpoletto.com/
     9License: GPLv2 or later
     10License URI: https://www.gnu.org/licenses/gpl-2.0.html
    911Text Domain: hide-post
    10 License: GPLv2 or later
    1112*/
    1213
    1314/*
    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
     15Copyright Emanuel Poletto.
     16
     17This program is free software: you can redistribute it and/or modify
    1918it under the terms of the GNU General Public License as published by
    20 the Free Software Foundation, either version 3 of the License, or
     19the Free Software Foundation, either version 2 of the License, or
    2120(at your option) any later version.
    2221
    23 Hide Post is distributed in the hope that it will be useful,
     22This program is distributed in the hope that it will be useful,
    2423but WITHOUT ANY WARRANTY; without even the implied warranty of
    2524MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     
    2726
    2827You should have received a copy of the GNU General Public License
    29 along with Hide Post.  If not, see <http://www.gnu.org/licenses/>.
     28along with this program. If not, see <https://www.gnu.org/licenses/>.
    3029*/
    3130
     
    5251    }
    5352
    54     static function initialize() {
     53    public static function initialize() {
    5554        if ( null == self::$instance ) {
    5655            self::$instance = new self;
     
    6059    public function register_taxonomy() {
    6160        $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',
    7776            ),*/
    7877        );
  • hide-post/trunk/readme.txt

    r1796166 r1796169  
    1 === Hide Post ===
     1# Hide Post
     2
    23Contributors: emanuelpoletto
    34Donate 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
     5Tags: hide, post, simple, privacy, show, visibility
     6Requires at least: 3.0
     7Tested up to: 4.9.1
     8Requires PHP: 5.2.4
     9Stable tag: 1.0.0
    810License: GPLv2 or later
    9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
     11License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1012
    1113Hide a post everywhere except when accessed directly.
    1214
    13 == Description ==
     15## Description
    1416
    1517Hide a post everywhere except when accessed directly.
    1618
    17 == Installation ==
     19Once 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
     21That's it :D
     22
     23Initially, every post is "Visible" by default.
     24
     25You can also change one or more posts visibility at a time using the quick edit WordPress native feature.
     26
     27Just 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
     29For 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
     31First, 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
     33If **Hide Post** helped you somehow, remember to leave some stars and optionally a [review here](https://wordpress.org/support/plugin/hide-post/reviews/) ;)
     34
     35And 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![Hiding Gif](https://media.giphy.com/media/V1NxC1YoNEHBe/giphy.gif)
     40
     41## Installation
    1842
    1943This section describes how to install the plugin and get it working.
    2044
    21451. 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
     462. Activate the plugin through the 'Plugins' screen in WordPress.
    2347
    24 == Changelog ==
     48## Changelog
    2549
    26 = 1.0.2 =
    27 * Create README and CHANGELOG files.
     50### 1.0.0
     51* First release.
    2852
    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.