Function to connect widget files. WordPress code example

Function to connect widget files. WordPress code example

Approved. Code works!
This is exactly the working code that is verified by the moderator or site administrators
$files = glob(dirname(__FILE__). '/widgets/*');
$fileNames = array();

foreach ($files as $file) {
    if (is_file($file)) {
        require $file;
    }
}
?>
0

More

Leave a Reply

Your email address will not be published. Required fields are marked *

lil-code© | 2022 - 2024
Go Top
Authorization
*
*
Registration
*
*
*
*
Password generation