Shortcodes
Shortcodes Class.
Namespace: WebberZone\Top_Ten\Frontend
Since: 3.3.0
Source: includes/frontend/class-shortcodes.php line 19
Methods
__construct()
Constructor class.
Since: 3.3.0
Line: 26
public function __construct( );
tptn_list() static
Creates a shortcode [tptn_list limit=“5” heading=“1” daily=“0”].
Since: 3.3.0
Line: 40
static public function tptn_list( $atts, $content = ... ): string;
| Type | Name | Description |
|---|---|---|
array |
$atts |
Shortcode attributes. |
string |
$content |
Content. |
Returns: string — Formatted list of posts generated by tptn_pop_posts
tptn_views() static
Creates a shortcode [tptn_views daily=“0”].
Since: 3.3.0
Line: 86
static public function tptn_views( $atts, $content = ..., $tag = ... ): string;
| Type | Name | Description |
|---|---|---|
array |
$atts |
Shortcode attributes. |
string |
$content |
Content. |
string |
$tag |
Shortcode tag. |
Returns: string — Views of the post.