Skip to the content
Documentation

draft_count

No ratings yet

Summary

Fetches the number of drafts that belong to the current user.

Usage

fetch( 'content', 'draft_count' )

Returns

The number of drafts (as an integer) that belong to the current user.

Description

This function fetches the number of drafts that belong to the current user and returns it as an integer.

Examples

Example 1
{def $drafts=fetch( 'content', 'draft_count' )}
The current user has {$drafts} drafts.

Outputs the number of drafts that belong to the current user.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.