This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Title: This is the tab title | |
Capability: manage_options | |
Page: edit, post-new | |
*/ | |
?> | |
<p>This is the Help text</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('init', 'my_init_function'); | |
function my_init_function(){ | |
if(is_admin()){ | |
include_once('path-to-file/class-piklist-checker.php'); | |
if (!piklist_checker::check(__FILE__)){ | |
return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('init', 'my_init_function'); | |
function my_init_function(){ | |
if(is_admin()){ | |
include_once('path-to-file/class-piklist-checker.php'); | |
if (!piklist_checker::check(__FILE__, 'theme')){ //use 'theme' parameter when included in a theme |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('piklist_post_types', 'piklist_demo_post_types'); | |
function piklist_demo_post_types($post_types) | |
{ | |
$post_types['piklist_demo'] = array( | |
'labels' => piklist('post_type_labels', 'Piklist Demo') | |
,'title' => __('Enter a new Demo Title') | |
,'menu_icon' => piklist('url', 'piklist') . '/parts/img/piklist-menu-icon.svg' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Name Of The Plugin | |
Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates | |
Description: A brief description of the Plugin. | |
Version: The Plugin's Version Number, e.g.: 1.0 | |
Author: Name Of The Plugin Author | |
Author URI: http://URI_Of_The_Plugin_Author | |
Plugin Type: Piklist | |
License: A "Slug" license name e.g. GPL2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> #### Powered by Piklist | |
> WordPress Helpers requires the Piklist framework. | |
> <a href="http://wordpress.org/extend/plugins/piklist/">You can download and install Piklist for free.</a> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'admin_body_class' => array( | |
'custom-body-class', | |
'custom-body-class-2 | |
) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'status' => array( | |
'new' => array( | |
'label' => 'New', | |
'public' => false | |
) | |
,'pending' => array( | |
'label' => 'Pending Review', | |
'public' => false | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'hide_meta_box' => array( | |
'author' | |
) | |