[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

(no description)

File Size: 215 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()
  the_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.
since: 5.9.0

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

return: string The original, desired slug.
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.
since: 5.8.0

the_block_template_skip_link()   X-Ref
Prints the skip-link script & styles.

since: 5.8.0

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

since: 5.8.0



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1