public/wordpress/wp-content/plugins/wp-courseware/includes/functions/core.php
/**
 * Determines if a page, identified by the specified ID, exist
 * within the WordPress database.
 *
 * @since 4.3.0
 *
 * @param int $id The ID of the post to check
 *
 * @return bool True if the post exists; otherwise, false.
 */
Determines if a page, identified by the specified ID, exist
within the WordPress database.



@param int $id The ID of the post to check

@return bool True if the post exists; otherwise, false.
Determines if a page identified by the specified ID exist within the WordPress database . @param int $id The ID of the post to check @return bool True if the post exists ; otherwise false .
function wpcw_page_exists( $id ) {
	$post_status = get_post_status( $id );
	return ( 0 !== $id && is_string( $post_status ) && 'publish' === $post_status ) ? true : false;
}
function wpcw_page_exists ( $ id ) { $ post_status = get_post_status ( $ id ) ; return ( 0 !== $ id && is_string ( $ post_status ) && 'publish' === $ post_status ) ? true : false ; }
Determines if a page, identified by the specified ID, exist
 within the WordPress database.
Determines if a page identified by the specified ID exist within the WordPress database .