Created
January 3, 2015 14:08
-
-
Save janizde/5e0e6dbb952943fc15c8 to your computer and use it in GitHub Desktop.
WP Opening Hours Filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Diesen Code irgendwo im Theme (functions.php) oder in einem eigenen kleinen Plugin unterbringen | |
*/ | |
function op_filter_custom_time_string ( $time_string ) { | |
$time_string_array = explode( ' ', $time_string ); | |
return 'Ab ' . $time_string_array[0]; | |
} | |
add_filter( 'op_overview_widget_time_string', 'op_filter_custom_time_string' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment