<?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; | |
} |
This file contains 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