This filter is documented in wp-admin/edit-tag-form.php $uri = apply_filters( 'editable_slug', $uri, $post ); if ( ! empty( $uri ) ) { $uri .= '/';
$post, $new_title = null, $new_slug = null
Sortie :
@param array $permalink {
@param int $post_id Post ID.
@param string $title Post title.
@param string $name Post name (slug).
@param WP_Post $post Post object.
@param int|WP_Post $post Post ID or post object.
@param string|null $new_title Optional. New title. Default null.
@param string|null $new_slug Optional. New slug. Default null.
@return string The HTML of the sample permalink slug editor.
// Utilisation de la fonction get_sample_permalink_html
$result = get_sample_permalink_html($post, $new_title = null, $new_slug = null);
if ($result) {
// Votre logique ici
}
Chargement des actualités...