Created
September 12, 2016 09:42
-
-
Save Stiofan/00ce073d12a1df0c6f4d8f413936bd71 to your computer and use it in GitHub Desktop.
Make shortcode work in field type
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 | |
function my_enable_shortcodes_in_cf($html,$location,$cf){ | |
// this line will enable it for all text inputs | |
$html = do_shortcode( $html ); | |
return $html; | |
} | |
add_filter('geodir_custom_field_output_text','my_enable_shortcodes_in_cf',15,3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment