Home › Forums › General Issues › Update 'Message' field manually in PHP › Reply To: Update 'Message' field manually in PHP
Why so complicated, are you really need this ‘Message’ field?
function stat_meta_box( $post_type, $post ) {
add_meta_box(
'stat_box',
'Summary',
function(){global $post;var_dump($post);}, // just for example
array( ), // blank or list of your post_types
'advanced' // or 'side'
);
}
add_action( 'add_meta_boxes', 'stat_meta_box', 10, 2 );
no extra queries or function chains but the same result
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.