Monday, April 25, 2016

WP : if wp_delete_user() is not defined, check these 2 things

First,

you should call it in init event handler, or later

Second,

make sure you have this file included prior to call:


 require_once(ABSPATH.'wp-admin/includes/user.php' );
 $current_user = wp_get_current_user();



No comments:

Post a Comment

Ubuntu 12.04, 14.04, 16.04 - auto start an app or script before login

To run a command or application at startup, even before the user has logged in, you can use this file: /etc/rc.local The commands entered...