📜  插件自定义代码来安装另一个插件 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:46.554000             🧑  作者: Mango

代码示例1
define( 'WP_ADMIN', TRUE );
define( 'WP_NETWORK_ADMIN', TRUE ); // Need for Multisite
define( 'WP_USER_ADMIN', TRUE );

require_once('../wp-load.php');
require_once( '../wp-admin/includes/admin.php' );
require_once( '../wp-admin/includes/plugin.php' );

activate_plugin( 'PATH_TO_THE_PLUGIN' );