Support

Account

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