andrew212
Forum Replies Created
-
Forum: Plugins
In reply to: [Math Captcha] w3 total cache with math captchaIf it doesn’t support page caching the plugin is as good as useless, I’d be looking for an alternate or write a custom plugin.
I’d jump into the plugin code just after the wp_new_user_notification is declared, echo out the parameters and then do an exit.
Just to confirm it’s being called and that parameters are being passed as expected.
When I had issues initially I found $notify was not receiving any values so it was not working for me until I upgraded WP.
Correction, only use the above hack for versions prior to 4.3! 4.3.1 is not required and the plugin should work fine.
Hey,
This may help someone, the plugin does not work for me either.
Am using v4.6 with WP 4.3.1
We’ve had to hack the plugin, hopefullly it will be fixed in future releases.
Just find this function:
wp_new_user_notificationComment out:
if ($notify && $notify != 'admin') { //needs to be like this for backwards compatibilityand change it to
`/*** TEMP HACK ***/
if ($notify != ‘admin’) {Reason is because in many cases WP does not even pass a 3rd parameter to wp_new_user_notification so the if statement fails
Forum: Plugins
In reply to: [Smart Popup by Supsystic] Call a popup directly from templateBTW, this solution does work however it’s not very dynamic, like if the popup id was to change well every post/page would have to be updated.
//The "PopUp by Supsystic" will only include the required js and css files if the shortcode is found in the content. //As we want to display the newsletter popup button on every page, and it does not sit within the content (a theme option), we //add it to the content and just hide it so the "PopUp by Supsystic" plugin picks it up and includes the necessary //fields on every page function point_add_popup_shortcode( $content ) { //check if the content already contains the shortcode $shortcode = '[supsystic-show-popup id=100]'; if(strpos($content, $shortcode) === false) { //add the shortcode to the content $content .= '<!--' . $shortcode . '-->'; } //return updated content return $content; } add_filter( 'content_save_pre', 'point_add_popup_shortcode', 10, 1 );