wpmem_get_block_setting()

Description

Returns the block setting for a post.

Parameters

$post_id
(int)(optional) The post id to check.

Return Values

(int) Returns the block setting for a post.

Notes

Possible values for a post’s block setting:

0 = unrestricted
1 = restricted
2 = hidden

Changelog

Introduced in version 3.3.0

Source

wpmem_get_block_setting() is located in /includes/api/api.php.