PHP code example of s3rgiosan / wpcustomize-api-plus

1. Go to this page and download the library: Download s3rgiosan/wpcustomize-api-plus 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/ */

    

s3rgiosan / wpcustomize-api-plus example snippets


$wp_customize->add_control(
    new s3rgiosan\WP\Plugin\Customize\Date\DatePicker(
        $wp_customize,
        'field_id',
        array(
            'type'        => 'date_picker',
            'label'       => 'Date',
            'description' => 'The start date.',
            'input_attrs' => array(
                'placeholder' => 'YYYY-MM-DD',
                'js_opts'     => array(
                    'dateFormat' => 'yy-mm-dd'
                ),
            ),
        )
    )
);