Browse: Home / Classes / LearnDash_Gutenberg_Block /

LearnDash_Gutenberg_Block::get_example_post_id

LearnDash_Gutenberg_Block::get_example_post_id( string $post_type = '' )

Get example post ID. This is used as part of WP 5.3 Gutenberg Block Example / Preview.


Description #


Parameters #

$post_type

(string) (Optional) Post Type Slug to retrieve.

Default value: ''


Return #

(integer) $post_id Post ID.


Source #

File: includes/gutenberg/lib/class-learndash-gutenberg-block.php


Changelog #

Changelog
Version Description
3.1.0 Introduced.