Changeset 2185596
- Timestamp:
- 11/04/2019 02:00:42 PM (6 years ago)
- Location:
- hide-page-and-post-title/trunk
- Files:
-
- 2 edited
-
hide-page-and-post-title.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hide-page-and-post-title/trunk/hide-page-and-post-title.php
r2169381 r2185596 5 5 Description: Hide the title on single pages and posts. 6 6 Author: Arjun Thakur 7 Version: 1. 3.37 Version: 1.4 8 8 License: GPLv2 or later 9 9 Author URI: https://profiles.wordpress.org/arjunthakur … … 24 24 add_action( 'save_post', array( $this, 'hpt_hptsave' ) ); 25 25 add_action( 'delete_post', array( $this, 'hpt_hptdelete' ) ); 26 add_action( 'wp_head', array( $this, 'hpt_hptheadinsert' ) , 3000);26 add_action( 'wp_head', array( $this, 'hpt_hptheadinsert' ) ); 27 27 add_action( 'the_title', array( $this, 'hpt_hptwraptitle' ) ); 28 28 add_action( 'wp_enqueue_scripts', array( $this, 'hpt_hptloadscripts' ) ); … … 52 52 } 53 53 /*Function hptaddbox*/ 54 public function hpt_hptaddbox(){$posttypes = array( 'post', 'page' ); 54 public function hpt_hptaddbox(){ 55 $posttypes = array( 'post', 'page' ); 56 $args = array( 57 'public' => true, 58 '_builtin' => false, 59 ); 60 61 $output = 'names'; 62 $operator = 'and'; 63 64 $post_types = get_post_types( $args, $output, $operator ); 65 66 foreach ( $post_types as $post_type ) { 67 68 $posttypes[] = $post_type; 69 70 } 71 55 72 foreach ( $posttypes as $posttype ){add_meta_box( $this->hpt_slug, 'Hide Page and Post Title', array( $this, 'build_hptbox' ), $posttype, 'side' );} 56 73 } -
hide-page-and-post-title/trunk/readme.txt
r2169381 r2185596 3 3 Plugin Name: Hide Page And Post Title 4 4 Plugin URI: https://profiles.wordpress.org/arjunthakur#content-plugins/ 5 Tags: hide page title, hide post title, hide title, title hide, hide, hide entry title, page title hide, post title hide, wp title, custom post type, cpthide.5 Tags: hide page title, hide custom post title, hide post title, hide title, title hide, hide, hide entry title, page title hide, post title hide, wp title, custom post type, cpt hide, custom post title hide. 6 6 Author URI: https://profiles.wordpress.org/arjunthakur 7 7 Requires at least: 3.5 8 Tested up to: 5.2. 39 Stable tag: 1. 3.310 Version: 1. 3.38 Tested up to: 5.2.4 9 Stable tag: 1.4 10 Version: 1.4 11 11 License: GPLv2 or later 12 12 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.