Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #52537, comment 2


Ignore:
Timestamp:
02/16/2021 11:22:20 AM (3 years ago)
Author:
audrasjb
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #52537, comment 2

    initial v1  
    11By the way, these conditional tags must be used inside the loop, and functions.php is called before the loop.
    22
    3 Try `add_action( 'wp_head', function() { var_dump( is_single() ); } );`.
     3Try `add_action( 'wp_body_open', function() { var_dump( is_single() ); } );`.
    44
    55''However, please avoid to open Trac tickets for support questions ;)''