Created
May 19, 2020 14:50
-
-
Save yanknudtskov/ce5c8480edd67a5414697e4aeea5d708 to your computer and use it in GitHub Desktop.
Change the label for the ACF Post Title field when used in acf_form( $args )
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
<?php | |
add_filter( 'enter_title_here', 'yanco_change_title_text' ); | |
function yanco_change_title_text( $title ){ | |
$screen = get_current_screen(); | |
if ( 'leverandor' == $screen->post_type ) { | |
$title = 'Virksomhedsnavn'; | |
} | |
return $title; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment