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;
}
view raw gistfile1.aw hosted with ❤ by GitHub

Bill Erickson

Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk