wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



editable_slug › WordPress Filter Hooks

Seit4.4.0
Veraltetn/v
apply_filters( 'editable_slug', $tag->slug, $tag )
Parameter: (2)
  • (string) $slug The editable slug. Will be either a term slug or post URI depending upon the context in which it is evaluated.
    Erforderlich: Ja
  • (WP_Term|WP_Post) $tag Term or post object.
    Erforderlich: Ja
Definiert in:
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.





Quellcode

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