Get meta key with value for user

Use get_user_meta() to get the meta data associated with the users in your loop: <?php $roles = array(‘autobuyer’); $users = array(); foreach ( $roles as $role ) { $args = array( ‘role’=>$role, ‘orderby’ => ‘registered’, ‘order’ => ‘ASC’, ‘search_columns’ => ‘nicename’, ‘number’=> 0, ‘date_query’ => array( ‘after’ => ‘October 14st, 2013’, ‘before’ => array( ‘year’ … Read more

How to keep the plugin submenu open on viewing a custom version of users.php?

You must use a different parent slug (first parameter) to keep the user menu as you want. An example, add_action(‘admin_menu’, ‘register_subscriber_submenu_page’); function wpdocs_register_subscriber_submenu_page() { add_submenu_page( ‘users.php’, ‘Subscribers’, ‘Subscribers’, ‘manage_options’, ‘custom-submenu-page’, ‘custom_callback_function’ ); } Try to prefix your plugin page slug, you can have conflict with such a name : ‘subscribers’ -> your-plugin-subscribers . You will … Read more

Change user URL

Go to Settings > Permalinks and set it up as follows Custom Structure and put . in category base

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)