Last active
October 22, 2018 17:16
-
-
Save ellegaarddk/c0f6f87361975a3a7235cbb042932fca to your computer and use it in GitHub Desktop.
Omdøb titelfelt i Custom Post Type
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
function change_default_title( $title ){ | |
$screen = get_current_screen(); | |
if ( $screen->post_type == 'your_custom_post_type' ) { | |
return __( Skriv din egen tekst her', 'lang_domain' ); | |
} | |
} | |
add_action('init', 'change_default_title'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment