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 a freelance WordPress developer and a contributing developer to the Genesis framework. For the past 14 years he has worked with attorneys, publishers, corporations, and non-profits, building custom websites tailored to their needs and goals.

Ready to upgrade your website?

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

Let's Talk