@howdy_mcgee I don’t want to redeclare theses functions, I just want to use them.
@catacaustic is right, I just had to move my logic to a hook where pluggable.php is already loaded.
What I’ve done is using a main class for my plugin and in the __construct hook my logic to init and/or plugins_loaded.
class MyPlugin {
public function __construct() {
add_action( 'plugins_loaded', [$this, 'plugins_loaded'] );
add_action( 'init', [$this, 'init'] );
}
public function plugins_loaded() {
// pluggables are available here
}
public function init() {
// pluggables are available here
}
}
new MyPlugin();
-
This reply was modified 7 years, 4 months ago by NtreSBK. Reason: mark as resolved
This answer my questions : https://ww.wp.xz.cn/support/topic/database-upgrade-to-5-0/#post-10957701
It seems that there isn’t a migration system.