1
vote
1answer
125 views

Shortcode callback for add_action('wp_footer')

I am trying to build a Google Maps shortcode using the gMap plugin from Github, not a plain iframe. For which I have to echo a custom inline script for EACH shortcode, right before the closing body ...
0
votes
1answer
620 views

ob_get_clean returns empty string, ob_get_flush outputs string

I am utilizing a template-type system, to filter the_content. My filter contains this partial code: ob_start(); include_once ( self::$dir . 'views/templates/' . $post_type . '/' . $display . '.php' ...
6
votes
2answers
298 views

current_shortcode() - detect currently used shortcode

In a plugin class I want to provide simple fields for public data: email, phone number, Twitter etc. The list can be extended. See the plugin Public Contact Data on GitHub for details. To keep the ...
0
votes
1answer
590 views

Replacement for gallery_shortcode function not taking all attributes

I have the following custom function to replace the gallery_shortcode function from core. It hooks in at the beginning and works. The problem is that I can't get my custom key/values from the ...