Home › Forums › Backend Issues (wp-admin) › Set Textarea to Uneditable › Reply To: Set Textarea to Uneditable
Actually, no, because it is sitting on a line all by itself then it doesn’t make sense that it’s not working. So I’m a little confused.
Try this
add_filter( 'acf/load_field/name=funbotic_parents', 'funbotic_load_parents' );
function funbotic_load_parents( $field ) {
$field['readonly'] = 1;
echo '<pre>'; print_r($field); echo '</pre>';
return $field;
}
when you load the edit page where the field would appear that should output all of the field settings for the field above the field.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.