public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/pages/page-course-modify.php
/**
 * Get a list of pages, with heirarchy, set as ID => Page Title in an array.
 *
 * @since 1.0.0
 *
 * @return array The page list as an array.
 */
Get a list of pages, with heirarchy, set as ID => Page Title in an array.

@return array The page list as an array.
Get a list of pages with heirarchy set as ID = > Page Title in an array . @return array The page list as an array .
function WPCW_pages_getPageList() {
	$args = array(
		'echo' => 0,
	);
	if ( preg_match_all( '/<option(.+?)value="(.+?)">(.+?)<\/option>/i', wp_dropdown_pages( $args ), $matches ) ) {
		$blank = array( '' => __( '---- No Page Selected ----', 'wp-courseware' ) );
		return $blank + array_combine( $matches[2], $matches[3] );
	}
	return false;
}
function WPCW_pages_getPageList ( ) { $ args = array ( 'echo' => 0 , ) ; if ( preg_match_all ( '/<option(.+?)value="(.+?)">(.+?)<\/option>/i' , wp_dropdown_pages ( $ args ) , $ matches ) ) { $ blank = array ( '' => __ ( '---- No Page Selected ----' , 'wp-courseware' ) ) ; return $ blank + array_combine ( $ matches [ 2 ] , $ matches [ 3 ] ) ; } return false ; }
Get a list of pages, with heirarchy, set as ID => Page Title in an array.
Get a list of pages with heirarchy set as ID = > Page Title in an array .
// Find all values and options, and return as an array of IDs to Page Title with indents. // Fix for page selection to key page keys.