true, 'single' => true, 'auth_callback' => [$this, 'auth_callback'], ) ); } /** * Determine if the current user can edit posts * * @return bool True when can edit posts, else false. */ public function auth_callback() { return current_user_can('edit_posts'); } } new Advanced_Heading_Post_Meta();