Returns whether the post can be edited in the block editor.
$post
Sortie :
@param int|WP_Post $post Post ID or WP_Post object. @return bool Whether the post can be edited in the block editor.
// Utilisation de la fonction use_block_editor_for_post
$result = use_block_editor_for_post($post);
if ($result) {
// Votre logique ici
}
Chargement des actualités...