wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



editable_slug › Les Filtres WordPress

Depuis4.4.0
Dépréciéen/a
› apply_filters( 'editable_slug', $tag->slug, $tag )
Paramètres: (2)
  • () slug The editable slug. Will be either a term slug or post URI depending upon the context in which it is evaluated.
    Requis: Oui
  • () tag Term or post object.
    Requis: Oui
Défini(e) dans:
Codex:

Filters the editable slug for a post or term.

Note: This is a multi-use hook in that it is leveraged both for editable post URIs and term slugs.




Source

$slug = isset( $tag->slug ) ? apply_filters( 'editable_slug', $tag->slug, $tag ) : '';