Last active
June 10, 2021 12:52
-
-
Save jreviews/9a62dbc4b13794d5078aebcc222a87ec to your computer and use it in GitHub Desktop.
Apply WordPress shortcodes to JReviews listing detail page text (summary and description) output
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 | |
Clickfwd\Hook\Filter::add('post_get_listing_detailpage_query', function($listing, $params) | |
{ | |
$listing['Listing']['text'] = do_shortcode($listing['Listing']['text']); | |
return $listing; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment