PHP code example of underpin / sidebar-loader

1. Go to this page and download the library: Download underpin/sidebar-loader library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

underpin / sidebar-loader example snippets


// Register sidebar
underpin()->sidebars()->add( 'example-sidebar', [
	'name'        => underpin()->__( 'Human readable name' ),
	'id'          => 'example',
	'description' => underpin()->__( 'Human readable description' ),
] );

underpin()->sidebars()->add('sidebar-key','Namespace\To\Class');