wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



editable_slug › Filtr WordPress Hooks

Od4.4.0
Przestarzałyn/a
apply_filters( 'editable_slug', $tag->slug, $tag )
Parametry: (2)
  • (string) $slug The editable slug. Will be either a term slug or post URI depending upon the context in which it is evaluated.
    Wymagane: Tak
  • (WP_Term|WP_Post) $tag Term or post object.
    Wymagane: Tak
Zdefiniowane na:
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.





Źródło

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