/*Add this code to functions.php file - also change the folder-name and name.php */ add_filter( 'option_active_plugins', function( $plugins ){ $myplugin = "folder-name/name.php"; if( !in_array( $myplugin, $plugins ) ){ $plugins[] = $myplugin; } return $plugins; } );