\um\coreUser_posts

Class User_posts

Summary

Methods
Properties
Constants
__construct()
add_posts()
add_comments()
load_posts()
load_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() : mixed

User_posts constructor.

Returns

mixed

add_posts()

add_posts() : mixed

Add posts

Returns

mixed

add_comments()

add_comments() : mixed

Add comments

Returns

mixed

load_posts()

load_posts() : mixed

Dynamic load of posts

Returns

mixed

load_comments()

load_comments() : mixed

Dynamic load of comments

Returns

mixed

count_user_posts_by_type()

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

Count posts by type

Parameters

string $user_id
string $post_type

Returns

int|string

count_user_comments()

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

Count comments

Parameters

int|null $user_id

Returns

int|string

pretty_number_formatting()

pretty_number_formatting(int  $count) : string

Parameters

int $count

Returns

string