Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Alterando o texto "Digite o título aqui" (Enter the title here) para um determinado post type (post, page ou custom post type)
- Insira o código abaixo no arquivo functions.php
- */
- function custom_title_text( $title ){
- $screen = get_current_screen();
- if ( 'SEU_POST_TYPE' == $screen->post_type ) {
- $title = 'SEU TITULO CUSTOMIZADO AQUI';
- }
- return $title;
- }
- add_filter( 'enter_title_here', 'custom_title_text' );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement