101 reputation
110
bio website
location
age
visits member for 2 years, 6 months
seen Aug 23 at 21:14

Jul
31
revised admin_notices after register_uninstall / deactivate_hook
more detials
Jul
31
comment admin_notices after register_uninstall / deactivate_hook
@kaiser Yes I've seen all the docs and that answer - but none allow a notice to the admin due (i believe) to the page refresh after they occur. Will update question in a moment.
Jul
31
asked admin_notices after register_uninstall / deactivate_hook
Jul
31
comment Uninstall, Activate, Deactivate a plugin: typical features & how-to
Think this should do it: register_activation_hook( __FILE__, function() { add_option('Activated_Plugin','Plugin-Slug'); }); add_action('admin_init', 'load_plugin'); function load_plugin() { if ( ! current_user_can( 'activate_plugins' ) ) return; if(is_admin()&&get_option('Activated_Plugin')=='Plugin-Slug') { delete_option('Activated_Plugin'); add_action( 'admin_notices', 't5_check_admin_notices', 0 ); } }
Jul
31
comment Uninstall, Activate, Deactivate a plugin: typical features & how-to
Actually just stumbled on the easy way: stackoverflow.com/a/13927297/362445
Jul
31
comment Uninstall, Activate, Deactivate a plugin: typical features & how-to
I see - but if the plugin is activated outside the plugin page (say as part of a theme dependency) then your checks will get skipped no? So I tried moving add_action( 'admin_notices', 't5_check_admin_notices', 0 ); into an activation hook and the plugin activates without performing the checks . . .
Jul
31
comment Uninstall, Activate, Deactivate a plugin: typical features & how-to
Touch confused, so basically there isn't a call to register_activation_hook here -- why not use it? Also will this fire before or after register_activation_hook and will register_activation_hook fire even if the above doesn't pass?
Jul
21
answered gravity forms jQuery.load into modal
Jul
18
asked gravity forms jQuery.load into modal
Jul
2
awarded  Popular Question
Jun
26
comment WordPress MultiSite Active Directory integration and site privacy
How did you get on with this? Im researching a similar implementation for a school.
Mar
25
answered Serve apache 404 for missing assets rather then wp 404 template WP_Rewrites
Mar
23
asked Serve apache 404 for missing assets rather then wp 404 template WP_Rewrites
Mar
3
comment Conditionally Loading JavaScript/CSS for Shortcodes
bit of an aside but doesn't this assume that people are using header.php and footer.php. What about theme wrapping methods such those described by scribu.net/wordpress/theme-wrappers.html ? or themes like roots that keep their template parts elsewhere?
Feb
8
comment How to replace regular jquery calls with CDN calls from Google?
just noticed this nice little hack has been folded into the wordpress Roots theme - sweet github.com/retlehs/roots/blob/master/lib/scripts.php
Jan
11
accepted passing markup thought a shortcode attribute
Jan
10
comment passing markup thought a shortcode attribute
Sorry thought it was in the thread - the preview is a tinyMCE modal that allows the user to set parameters and see the changes in a live map. It then inserts the shortcode into the post. Transients are uncharted territory for me, so I was wondering if there was an easer way to handel my situation - hence my first attempt at shoving all the markup though a parameter! You've been very helpful by the way - thanks.
Jan
9
comment passing markup thought a shortcode attribute
Yes in some ways but it need not call the google API for marker data each time. Consider: a) at the preview stage we ping the API and pull associated address, content, images, ratings etc. and store that content/markup in the database for later use (ie we just add that content to a marker in the map - no api call needed) or B) only store the address and make a new api call each time the page is loaded. Option 'B' will, I believe be significantly slower. This is why Im still considering the WP transients API to store the details rather then shoving them explicitly as parameters in the shortcode
Jan
8
comment passing markup thought a shortcode attribute
Sorry for the late reply - Holidays took me by storm (literally in some respects). I'll follow your advice and break up the parameters as you've suggested. I was just hoping that there might be another way to go about it. Basically the maps API can grab a bunch of unknown items like ratings etc if they exist for the location in question. I just hoped I could get the output at the preview stage, without the plugin having to make another request later (or each time it was called).
Jan
8
comment passing markup thought a shortcode attribute
s_ha_dum, fabulous write up.