wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



editable_slug › WordPress Filter Hooks

Da4.4.0
Deprecaton/a
apply_filters( 'editable_slug', $tag->slug, $tag )
Parametri: (2)
  • (string) $slug The editable slug. Will be either a term slug or post URI depending upon the context in which it is evaluated.
    Richiesto:
  • (WP_Term|WP_Post) $tag Term or post object.
    Richiesto:
Definito a:
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.





Sorgenti

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