Filtering and replacing content
-
Thank you for creating such a wonderful WordPress plugin. I love Zotpress.
I understand that using custom CSS I can customize the bibliography on my webpage. However, I would like to hide the abstract initially, and then when a visitor clicks on show abstract then it should be visible. For this purpose, I am trying to filter the content of the [zotpress] shortcode, however, a simple filter does not work. I tested the same code it does work on the other content on the same page.function za_zotpress_shortcode_filter($output, $tag, $atts, $m) { if ($tag === 'zotpress') { return str_replace("Abstract", "New Abstract", $output); } } add_filter('do_shortcode_tag', 'za_zotpress_shortcode_filter', 10, 4);Thank you very much, any help will b highly appreciated!!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Filtering and replacing content’ is closed to new replies.