PHP code example of pronamic / wp-datetime

1. Go to this page and download the library: Download pronamic/wp-datetime 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/ */

    

pronamic / wp-datetime example snippets


function prefix_pronamic_datetime_default_format( $format ) {
	return _x( 'D j M Y \a\t H:i', 'default datetime format', 'pronamic-ideal' );
}

add_filter( 'pronamic_datetime_default_format', 'prefix_pronamic_datetime_default_format' );