Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created January 15, 2012 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/1617661 to your computer and use it in GitHub Desktop.
Save billerickson/1617661 to your computer and use it in GitHub Desktop.
CMS Page Order - Customize Page Label
<?php
add_action( 'cmspo_page_label', 'be_slide_order_label', 10, 2 );
/**
* CMS Page Order - Rename to 'Slide Order' on rotator
* @author Bill Erickson
* @link http://www.billerickson.net/code/cms-page-order-customize-page-label
*
* @param string $label, default "Page Order"
* @param string $post_type
* @return string
*/
function be_slide_order_label( $label, $post_type ) {
if( 'rotator' == $post_type )
$label = 'Slide Order';
return $label;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment