wpseek.com
A WordPress-centric search engine for devs and theme authors



get_sample_permalink › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( 'get_sample_permalink', $permalink, $post->ID, $title, $name, $post )
Parameters: (5)
  • (array) $permalink { Array containing the sample permalink with placeholder for the post name, and the post name. @type string $0 The permalink with placeholder for the post name. @type string $1 The post name. }
    Required: Yes
  • (int) $post_id Post ID.
    Required: Yes
  • (string) $title Post title.
    Required: Yes
  • (string) $name Post name (slug).
    Required: Yes
  • (WP_Post) $post Post object.
    Required: Yes
Defined at:
Codex:

Filters the sample permalink.





Source

return apply_filters( 'get_sample_permalink', $permalink, $post->ID, $title, $name, $post );