Since the standard redirection works, I figured the conflict must be with TGM plugin activation already hooking to activated_plugin
and producing output and thus preventing the redirect…
Therefore the solution was to ensure that the plugin activation function hook was added to an earlier priority than the (silent) default of 10 most probably used by TGM:
add_action( 'activated_plugin', 'activation_redirect', 9 );
Related Posts:
- Force plugin to fail activation
- Unable to activate wordpress importer after installing it
- Apparent errer when installing plugin
- Modifying server’s response to API endpoint
- Problems with installing and deleting plugins
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration
- How to eliminate weird 404 errors in wp-admin?
- Show a confirm message before plug-in activation
- How to get Login Error messages on a custom template
- Function to activate WordPress theme inside a plugin
- Error: “Cannot modify header information”
- Change My Basket text in the header of WooCommerce Artificer theme
- Plugin.php: PHP Notice: Undefined offset: 0 in
- check for the current screen
- explanation for activate_plugin function in wordpress core
- How do you install the automattic developer plugin under localhost for mamp when there is an error, deprecated?
- echo do_shortcode is not working on theme’s template
- How can I see the error generated by plugin activation?
- Detect when any plugin is activated or deactivated
- Accessing GET variable named ‘error’
- Plugin won’t activate – cannot declare class (already in use)
- Unable to install theme recommended plugins on Multisite
- How to activate plugins for my WordPress sites from a remote server
- Problem with wordpress version 3.8
- register_activation_hook with include file [closed]
- Prevent a plugin from being automatically activated
- WordPress Redirect Not Working – AJAX Callback Response Not Picked Up
- Is any information available in PHP files in WP about plugin activation history?
- Call to undefined function get_userdata in user.php
- Only Homepage not loading properly
- Accidentally Broke Site (Please Help) [closed]
- Own plugin corrups plugin-activation
- CSV file generation failing
- How to redirect a URL with parameters?
- Problem using Press-this book marklet
- Headers Content-Security-Policy CSP Major Issue
- Python with wordpress plugin
- How to check if tables in WordPress still exists after activations
- Nonce failing on form submission
- Run plugins only on certain pages
- Uncaught TypeError: jQuery(…).flipster is not a function in wordpress
- WordPress site periodically goes down
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- Force file download on plugin activation
- WordPress shows error related to allow_url_fopen
- WordPress user account activation
- Why this function not working for install database on plugin activation
- Why am I getting a “Call to undefined function curl_init()” when I try to use the Sociable plugin?
- Enqueue stylesheet in plugin for wp-login.php
- Run function on plugin activation before plugin is loaded
- A question about register_activation hook
- XML Sitemap Generator can’t notify google and bing
- register_activation_hook() not working as expected
- React error #231with Custom Blocks after upgrade to WP 5.5
- UTF-32be error WordPress
- Elementor page builder plugin not loading up all the way? [closed]
- echo get_option in header template
- Getting error “Warning: mysql_query(): Can’t connect to local MySQL server through socket ‘FILEPATH/cccatalog-plugin.php on line 1656”
- Classic, but puzzling “The uploaded file could not be moved”
- Cannot access WP admin because plugin returns 204
- force jQuery to load in the head
- how would I include some html in the header section of a wordpress plugin? I get an error
- sliding/fading header plugin or approach suggestion
- All new plugins generating 311 chars of unexpected output?
- Activation flow of a plugin in a multisite environment
- Error: call_user_func_array() expects parameter 1 to be a valid callback
- Prevent WordPress from sending set-cookie http header
- WordPress fatal error from php protocol codes
- WP search box on page not finding .PDF files
- Changing wordpress/woocommerce notices default message to other languages (text)
- how to enable/activate a plugin per Cpanel
- My WordPress activation hook isn’t working
- I can’t view the orders on the woocomerce dashboard with the brainblocks plugin
- ERROR message: “The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.”
- PDF Viewer Origin is Different
- Object of class WP_Error could not be converted to string in /formatting.php
- How to fix shifting header after installing speed / cache plugins?
- WordPress website dont load CSS, JS and images
- WordPress Dashboard shows no plugins installed!
- ClassLoader.php issues after moving to a new host
- Warning: Illegal offset type in /var/www/html/wp-includes/option.php on line 1924
- How to validate field when create post
- Speed issues because of CSS & JavaScript
- Error Copying Directory On Plugin Activation
- WordPress hook source
- A more elegant way to handle notices/warnings
- Plugin Installation Error
- WordPress 3.5 install error
- Is there a plugin that will override the “Error establishing a database connection” message? [closed]
- WordPress repository forbids me call wp-load.php in non-WordPress file
- HTTP Error 403 When Trying to Login
- Why do I get this “peer’s certificate issuer not recognised” error when trying to install a theme?
- Fatal error with Ultimate Coupon plugin
- The plugin generated xxx characters of unexpected output during activation
- WordPress Plugin: Demon Image Annotation
- Console errors after WordPress Update 6.1
- WordPress error Fatal error: Uncaught TypeError: Argument 3 passed to Automattic :get_setting_for_feature() [closed]
- Footer option is missing in Customiser
- Oxygen plugin wordpress stuck in loading sequence forever when trying to edit a page [closed]