Browse: Home / Classes / Learndash_Admin_Post_Edit /

Learndash_Admin_Post_Edit::post_type_check

Learndash_Admin_Post_Edit::post_type_check( mixed $edit_post = null )

Common function to check if we are editing a correct post type.


Description #


Parameters #

$edit_post

(mixed) (Optional) WP_Post object or post type string.

Default value: null


Return #

(boolean) true is correct, else false.


Source #

File: includes/admin/class-learndash-admin-posts-edit.php


Changelog #

Changelog
Version Description
2.6.0 Introduced.