Skip to content

Instantly share code, notes, and snippets.

@groupewibi
Created January 10, 2018 18:17
Show Gist options
  • Save groupewibi/8024275c2bd1958d0107944d87337d70 to your computer and use it in GitHub Desktop.
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
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