WordPress user account activation

The plugin Profile Builder provides all those features. From the WordPress plugin repository readme: Profile Builder is WordPress user registration done right. And from the creator’s website: Admin Approval for new users You decide who is a user on your website. Get notified via email or approve multiple users at once from the WordPress UI.

Add action hook into wp_localize_script

Everything is working as expected. The problem is that your hook is rendering content to the page and you would like to pass that output to the javascript variable included in the JS output. You need to capture the hook output into a variable then add to $data. // buffer output ob_start(); // run hook … Read more

Redux callback action

This is an old question but if you are still looking, what you want is the dependency option. You can use it like this : Redux::setSection( $opt_name, array( ‘title’ => __( ‘Test’, ‘redux-test’ ), ‘id’ => ‘switch_buttonset’, ‘desc’ => __( ”, ‘redux-test’ ), ‘icon’ => ‘el el-cog’, ‘fields’ => array( array( ‘id’ => ‘switch-on’, ‘type’ … Read more

schedule event in class oriented plugin

This reason, and others (removing a hook for example) is why you should use for hooks only plain functions or static functions. OOP in plugins and themes rarely has anything to do with proper OO. If you use it as a way to have a separate namespace, then just use a namespace.