eventorganiser_blog_is_24
(filter)
Filters whether your site's time format is 12 hour or 24 hour.
This does not affect anything on the front-end, but it is used to determine
the format in which times are entered admin-side. If true
then 24 hour time
is used, otherwise 12 hour time is used.
By default this value is a 'best guess' based on your site's time format
option in Settings > General.
Example
add_filter( 'eventorganiser_blog_is_24', '__return_false' );
add_filter( 'eventorganiser_blog_is_24', '__return_true' );
Parameters
bool
|
$is_24 |
Is the site's time format option using 12 hour or 24 hour time.
|
Example Usage
add_filter( 'eventorganiser_blog_is_24', 'my_callback_function', 10, 1 );
function my_callback_function( $is_24 ){
//Change first value and return it
return $is_24
};