\um\coreUser_posts

Class User_posts

Summary

Methods
Properties
Constants
__construct()
load_posts()
load_comments()
add_posts()
add_comments()
count_user_posts_by_type()
count_user_comments()
pretty_number_formatting()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

User_posts constructor.

load_posts()

load_posts(array  $args) 

Dynamic load of posts

Parameters

array $args

load_comments()

load_comments(  $args) 

Dynamic load of comments

Parameters

$args

add_posts()

add_posts() 

Add posts

add_comments()

add_comments() 

Add comments

count_user_posts_by_type()

count_user_posts_by_type(string  $user_id = '', string  $post_type = 'post') : integer|string

Count posts by type

Parameters

string $user_id
string $post_type

Returns

integer|string

count_user_comments()

count_user_comments(integer|null  $user_id = null) : integer|string

Count comments

Parameters

integer|null $user_id

Returns

integer|string

pretty_number_formatting()

pretty_number_formatting(integer  $count) : string

Parameters

integer $count

Returns

string