Tag Info

New answers tagged

0

add_action('pre_user_query', 'user_column_orderby'); function user_column_orderby($userquery){ if('Votes'==$userquery->query_vars['orderby']) { global $wpdb; $userquery->query_from .= " LEFT OUTER JOIN $wpdb->usermeta AS alias ON ($wpdb- >users.ID = alias.user_id) "; $userquery->query_where .= " AND alias.meta_key = 'wp__user_like_count' "; ...


0

Solved: jQuery(‘input[name=dokan_update_profile]‘).click(function(){ tinyMCE.triggerSave(); }); Needed to update manually the tinymce, guess because it's in an Iframe. Thanks anyway


0

user_new_form is the hook that do can do the magic here. function custom_user_profile_fields($user){ ?> <h3>Extra profile information</h3> <table class="form-table"> <tr> <th><label for="company">Company Name</label></th> <td> <input ...


0

To Make admin Sidebar Menu always be Collapse try adding the following code in the fubctions.php file of your child theme or add it in your site using any of the following plugins. http://wordpress.org/plugins/code-snippets/ http://wordpress.org/plugins/add-actions-and-filters/ <?php global $user_ID; $user_fold = get_user_meta($user_ID, ...


1

It looks like you're using wrong parameters, please try this instead (untested): $q = new WP_User_Query( array( 'role' => 'contributor', 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'first_meta', 'value' => '2', ), ...


0

There is a couple solution to your problem, some of them will give you more flexibility others will make the field safer. The one I like the most is to use wp_kses_post which will only allow the HTML that you would have accepted on a post, but if you want to remove all HTML tags you would go for a wp_kses( $string_unsafe, array() ). You can also go for a ...



Top 50 recent answers are included