Redirect after User Activation [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 7 years ago. Improve this question I am using BuddyPress 2 registration and activation for three different sites with my own registration form. To know where the … Read more

Can’t add user to blog on registration (Multisite)

I’m trying to add a users to a specific blog with a role chosen by the user at registration. I’m able to add the desired role to meta with this: add_filter( ‘add_signup_meta’, ‘add_register_meta’ ); public function add_register_meta($meta = array()) { $role = sanitize_text_field( $_POST[‘role’] ); $meta[‘role’] = $role; return $meta; } I can see the … Read more

Function to activate WordPress theme inside a plugin

I am creating a plugin that generates a theme, and so I want to have a checkbox at the end of the theme generation process that gives the possibility to activate the freshly created theme without having to do it manually. Is there any function that can do that? 2 Answers 2 Of course there’s … Read more

Using wp_cron with custom time interval and the register activation hook

Scenario 1: fails Adding a cron task wp_schedule_event with a custom interval on plugin activation using register_activation_hook outside the class definition fails to work because the custom interval is not recognized yet; register_activation_hook(__FILE__, array(‘Test’, ‘test_plugin_activated’ ) ); register_deactivation_hook(__FILE__, array(‘Test’, ‘test_plugin_deactivated’ ) ); add_action(‘plugins_loaded’, array ( Test::get_instance(), ‘plugin_setup’ ) ); class Test { protected static $instance … Read more