• Hello everyone,

    I have a question, I’ve made some research but I found nothing.

    I’m wondering why in the function get_post_templates() in wp-includes/class-wp-theme.php at line 1015 the depth args in the get_files is hard-coded with 1.

    `$files = (array) $this->get_files( ‘php’, 1, true );

    I think that at least 2 is not too much. For exemple :

    templates/my-post-type/block1.php

    templates/my-post-type/block2.php

    Is there someone who know why it is hardcoded to 1 ?

    Thanks for your help.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Change Template depth search’ is closed to new replies.