Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #38292, comment 15


Ignore:
Timestamp:
06/29/2017 02:58:40 AM (7 years ago)
Author:
alexvorn2
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38292, comment 15

    v1 v2  
    1 Hi all! But how it works? How to exclude a folder?
    2 
    3 I use this code and it seems not to work:
    4 {{{#!php
    5 <?php
    6 function exclude_includes_folder( $folders = array() ) {
    7         $folders[] = 'includes';
    8 
    9         return $folders;
    10 } add_filter( 'theme_scandir_exclusions', 'exclude_includes_folder' );
    11 }}}
    12 
    13 Added code to functions.php file of my theme...
     1[deleted]