Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_editable_authors [ WordPress Function ]

get_editable_authors ( $user_id )
Parameters:
  • (int) $user_id User ID.
Returns:
  • (array|bool) List of editable authors. False if no editable users.
Defined at:



No description yet.

Source


<?php
function get_editable_authors$user_id ) {
    
_deprecated_function__FUNCTION__'3.1''get_users()' );

    global 
$wpdb;

    
$editable get_editable_user_ids$user_id );

    if ( !
$editable ) {
        return 
false;
    } else {
        
$editable join(','$editable);
        
$authors $wpdb->get_results"SELECT * FROM $wpdb->users WHERE ID IN ($editable) ORDER BY display_name" );
    }

    return 
apply_filters('get_editable_authors'$authors);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics