Created
January 10, 2018 18:17
-
-
Save groupewibi/8024275c2bd1958d0107944d87337d70 to your computer and use it in GitHub Desktop.
Acf Form : Changing the Label and Instruction of the Wysiwig Post_content field using prepare/field
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 my_acf_prepare_field( $field ) { | |
$field['label'] = "My new title"; | |
$field['instructions'] = "My new instruction"; | |
if ( $field ) { return $field; } else { exit; } | |
} | |
add_filter('acf/prepare_field/name=_post_content', 'my_acf_prepare_field'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment