I’m sorry but currently there’s no plugin hook that can help you achieve this. You can use the following code into your theme functions.php though:
/**
* Rename FA Lite menu from FA Lite 3 to something else
*
* @param array $args - post type details
* @param string $post_type - post type name
* @return array
*/
function rename_fa_lite_menu( $args, $post_type ){
global $fa_lite;
if( !$fa_lite || !is_admin() ){
return $args;
}
$slider_pt = $fa_lite->post_type_slider();
if( $slider_pt == $post_type ){
$args['labels']['menu_name'] = __( 'Front page slider' );
}
return $args;
}
add_filter( 'register_post_type_args', 'rename_fa_lite_menu', 999, 2 );
Many thanks for your prompt reply.
Did you test the provided code?
I’ve added it to my child themes functions.php file but it’s not working.
Hi,
Yes, I tested it in a child theme and it modified the output (WP 4.5, theme Twenty Fifteen).
I’m using WordPress version 4.5 with the Twenty Sixteen theme and it’s not working.
Hi,
Pasted the exact same code from above into with Twenty Sixteen functions.php and it worked. Can’t say what could be happening on your installation that prevents this from working.
Did you try it from a child theme functions.php or the actual Twenty Sixteen parent theme itself?
As mentioned, this isn’t working for me in a child theme.
Hi,
Sorry for the delay. Yes, I tried from theme directly and from child theme. If you can allow me temporary FTP and WP admin access to take a look, please contact us here: http://codeflavors.com/contact/
No problems, the details have now been sent.
Thank you , problem solved. I e-mailed you back with more details.
Note: for others trying to do this, please make sure you use plugin version 3.1.3+