Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #60852, comment 1


Ignore:
Timestamp:
03/28/2024 03:43:58 PM (2 years ago)
Author:
Bernhard Reiter

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60852, comment 1

    initial v1  
    1 Note that getting [https://developer.wordpress.org/reference/functions/is_singular/ `is_singular()`] to work would allow users to inject a hooked block only when the current template is for a custom post type (e.g. `if ( is_singular( 'book' ) ) { /* ... */ }`), which seems to be a recurrent request.
     1Note that getting [https://developer.wordpress.org/reference/functions/is_singular/ `is_singular()`] to work would allow users to inject a hooked block only when the current template is for a custom post type (e.g. `if ( is_singular( 'book' ) ) { /* ... */ }`), which seems to be a recurring request.