[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/ -> theme-templates.php (summary)

(no description)

File Size: 231 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  wp_set_unique_slug_on_create_template_part()
  wp_filter_wp_template_unique_post_slug()
  wp_enqueue_block_template_skip_link()
  wp_enable_block_templates()

Functions
Functions that are not part of a class:

wp_set_unique_slug_on_create_template_part( $post_id )   X-Ref
Sets a custom slug when creating auto-draft template parts.

This is only needed for auto-drafts created by the regular WP editor.
If this page is to be removed, this will not be necessary.

param: int $post_id Post ID.

wp_filter_wp_template_unique_post_slug( $override_slug, $slug, $post_id, $post_status, $post_type )   X-Ref
Generates a unique slug for templates.

param: string $override_slug The filtered value of the slug (starts as `null` from apply_filter).
param: string $slug          The original/un-filtered slug (post_name).
param: int    $post_id       Post ID.
param: string $post_status   No uniqueness checks are made if the post is still draft or pending.
param: string $post_type     Post type.
return: string The original, desired slug.

wp_enqueue_block_template_skip_link()   X-Ref
Enqueues the skip-link script & styles.


wp_enable_block_templates()   X-Ref
Enables the block templates (editor mode) for themes with theme.json by default.




Generated : Mon Apr 15 08:20:02 2024 Cross-referenced by PHPXref