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: Steph's Tiny List Child Pages Plugin | |
Plugin URI: http://sillybean.net/2010/06/listing-child-pages-with-a-shortcode/ | |
Description: Lets you list child pages using a shortcode. Also displays child page list by default on empty parent pages. | |
Author: Stephanie Leary | |
Version: 1.0 | |
Author URI: http://sillybean.net/ | |
License: GPL v2 or later | |
*/ |
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 to functions.php or place in mu-plugins | |
// Admin Notice on Posts Page | |
add_action( 'admin_notices', 'scl_postspage_print_notices' ); | |
function scl_postspage_print_notices() { | |
$screen = get_current_screen(); | |
if ( $screen->parent_base != 'edit' || $screen->base != 'post' || $_REQUEST['action'] != 'edit' ) | |
return; |
NewerOlder