Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cn_listar_autor_postagens_atividade($cn_username)
- {
- include(ABSPATH . "wp-includes/wp-db.php");
- $wpdb = new wpdb('-', '-', '-', '-');
- $cn_userid = username_exists($cn_username);
- if(!$cn_userid)
- {
- return false;
- }
- else
- {
- $cn_query = $wpdb->get_results("SELECT action, content FROM wp_bp_activity WHERE user_id = '$cn_userid'");
- foreach($cn_query as $cn_key => $cn_values)
- {
- echo $cn_values->action . '<br />';
- echo $cn_values->content . '<br />';
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement