Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * This snippet replaces #_SITEURL with the URL of the site in event formats.
- * For installation instructions, see here - http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/
- */
- function my_em_site_url_placeholder($replace, $EM_Category, $result){
- switch( $result ){
- case '#_SITEURL':
- $replace = get_site_url();
- break;
- }
- return $replace;
- }
- add_filter('em_event_output_placeholder','my_em_site_url_placeholder',1,3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement