get_sample_permalink

FUNCTION wp-admin\includes\post.php (ligne 1438) github
Filters the postbox classes for a specific screen and box ID combo. The dynamic portions of the hook name, `$screen_id` and `$box_id`, refer to the screen ID and meta box ID, respectively.

Paramètres

Entrée :
$post, $title = null, $name = null
Sortie :
@param string[] $classes An array of postbox classes.
@param int|WP_Post $post  Post ID or post object.
@param string|null $title Optional. Title to override the post's current title
@param string|null $name  Optional. Name to override the post name. Default null.
@return array {

Utilisation

// Utilisation de la fonction get_sample_permalink
$result = get_sample_permalink($post, $title = null, $name = null);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...