Jon
Forum Replies Created
-
Forum: Plugins
In reply to: [Mailgun for WordPress] Minor issues with Mailgun settings screenI am using Chrome and the links don’t work correctly in 1.7.8. They jump for a second, but then jump right back. Video example: https://drive.google.com/uc?id=1_4k-0qdMPfnP6aV0cOUnMv5GA3ImVJzD
Forum: Plugins
In reply to: [Mailgun for WordPress] Changelog is wrongNow you’ve gone and done it. Version 1.7.6 is out. But your changelog here only goes up to 1.7.2.
Gravity Forms 2.5 Release Candidate 1 is out now: https://www.gravityforms.com/2-5-release-candidate-1/
@surbma can you start testing the plugin to be sure it will work/look well with the new updates?
Forum: Plugins
In reply to: [Enable jQuery Migrate Helper] 5.7 Update and supportSo, to confirm, this plugin will still “work” to help sites use legacy versions of jQuery and/or jQuery Migrate — even after 5.7 (or 5.8, or whenever WP finally removes jQuery Migrate)?
Forum: Plugins
In reply to: [WP Activity Log] After uninstall and clearing, there is still a cron hookIt looks like the 2 fields I previously mentioned are still in the DB after I re-installed the plugin and said for it to clear everything on uninstall.
There is an entry in the
cron
option_name and an option_name offs_wsalp
.I have this exact issue too. It’s strange though, because the 2 identical “Events” are actually triggering on the form’s page (there is no event triggering on the Thank You page). So I’m not sure how/why it’s occurring. But this definitely seems like a bug that needs to be fixed.
Forum: Plugins
In reply to: [Event Tracking for Gravity Forms] Does this work with GTMUpdate: I’ve done all the settings you mentioned in the video link above. It now logs the submission events. However, it actually logs the event twice, for some reason. Would you be able to take a look?
Seems to be same issue as mentioned here: https://www.ads-software.com/support/topic/double-event-if-confirmation-send-form-on-page/
- This reply was modified 3 years, 9 months ago by Jon.
I think you’re correct, last I know you need to have a GA tracking code setup elsewhere (either via a different plugin, or manually adding your GA tracking code to header) when using this plugin.
Actually looks like
admin_init
action isn’t working, as it may be firing at wrong time?So, is the second option OK to have, even if/when plugin is deactivated?
Should I still use within
admin_init
? Or isn’t that necessary?<?php function remove_aioseo_details_column(){ // enable if AIOSEO is active if ( function_exists( 'aioseo' ) ) { // fires after WordPress has finished loading but before any headers are sent. add_action( 'init', function() { // get current User $user = wp_get_current_user(); // get their email address $email = $user->user_email; // check the email's domain $domain = 'example.com'; // check if email address matches domain list $banned = strpos($email, $domain) === false; // if current user's email address doesn't match domain list, then hide the AIOSEO column if( $user && $banned ) { // remove the AIOSEO Details column for users without a particular email address domain remove_action( 'current_screen', [ aioseo()->admin, 'addPostColumns' ], 1 ); } } ); } } add_action('admin_init' , 'remove_aioseo_details_column');
versus:
<?php // enable if AIOSEO is active if ( function_exists( 'aioseo' ) ) { // fires after WordPress has finished loading but before any headers are sent. add_action( 'init', function() { // get current User $user = wp_get_current_user(); // get their email address $email = $user->user_email; // check the email's domain $domain = 'example.com'; // check if email address matches domain list $banned = strpos($email, $domain) === false; // if current user's email address doesn't match domain list, then hide the AIOSEO column if( $user && $banned ) { // remove the AIOSEO Details column for users without a particular email address domain remove_action( 'current_screen', [ aioseo()->admin, 'addPostColumns' ], 1 ); } } ); }
Would this suffice? https://gist.github.com/Garconis/d7125787022eb325426706ac2d19cc5d
<?php function remove_aioseo_details_column(){ // enable if AIOSEO is active if ( is_plugin_active( 'all-in-one-seo-pack/all_in_one_seo_pack.php' ) ) { // fires after WordPress has finished loading but before any headers are sent. add_action( 'init', function() { // get current User $user = wp_get_current_user(); // get their email address $email = $user->user_email; // check the email's domain $domain = 'example.com'; // check if email address matches domain list $banned = strpos($email, $domain) === false; // if current user's email addess doesn't match domain list, then hide the AIOSEO column if( $user && $banned ) { // remove the AIOSEO Details column for users without a particular email address domain remove_action( 'current_screen', [ aioseo()->admin, 'addPostColumns' ], 1 ); } } ); } } add_action('admin_init' , 'remove_aioseo_details_column');
- This reply was modified 3 years, 9 months ago by Jon.
OK, so I should wrap with some sort of
is_plugin_active
first?Looks like this is throwing error, possibly when AIOSEO isn’t activated?
Fatal error: Uncaught Error: Call to undefined function aioseo() in /srv/users/freshysites/apps/fstemplate/public/wp-content/themes/Divi-child/functions.php:66 Stack trace: #0 /srv/users/freshysites/apps/fstemplate/public/wp-includes/class-wp-hook.php(287): {closure}('') #1 /srv/users/freshysites/apps/fstemplate/public/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 /srv/users/freshysites/apps/fstemplate/public/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #3 /srv/users/freshysites/apps/fstemplate/public/wp-settings.php(557): do_action('init') #4 /srv/users/freshysites/apps/fstemplate/public/wp-config.php(83): require_once('/srv/users/fres...') #5 /srv/users/freshysites/apps/fstemplate/public/wp-load.php(37): require_once('/srv/users/fres...') #6 /srv/users/freshysites/apps/fstemplate/public/wp-blog-header.php(13): require_once('/srv/users/fres...') #7 /srv/users/freshysites/apps/fstemplate/public/index.php(17): require('/srv/users/fres...') #8 {main} thrown in /srv/users/freshysites/apps/fstemplate/public/wp-content/themes/Divi-child/functions.php on line 66
What is
monsterinsights_lite_uninstall_hook
used for? I see that within theuninstall_plugins
option_name
value withinwp_options
.@chriscct7 Can’t you just add an option to remove them on uninstall?