add a custom read-only field
-
Good morning all,
Excuse me for my English but I am French.
I’m creating a custom field by default but I do not know how to set the label to read-only.
function champ_temoignages_nom($postID) { $post = get_post($postID); if ($post->post_type == 'temoignages') { add_post_meta($postID, 'nom', '', true); } return true; }
I thank you for your help
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘add a custom read-only field’ is closed to new replies.