# learnpress/4.4.8/inc/admin/meta-box/fields/select-page.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.8. 27 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.8/code/inc/admin/meta-box/fields/select-page.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.8/raw/inc/admin/meta-box/fields/select-page.php
- Modified: 2026-09-18T11:22:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.4.8/code/inc/admin/meta-box/fields/select-page.php#L10-L20`.

```php
<?php
$args = array(
	'name'             => $value['id'],
	'id'               => $value['id'],
	'sort_column'      => 'menu_order',
	'sort_order'       => 'ASC',
	'show_option_none' => ' ',
	'class'            => $value['class'],
	'echo'             => false,
	'selected'         => absint( $value['value'] ),
	'post_status'      => 'publish,private,draft',
);

if ( isset( $value['args'] ) ) {
	$args = wp_parse_args( $value['args'], $args );
}
?>

<tr valign="top" class="single_select_page">
	<th scope="row" class="titledesc">
		<label><?php echo esc_html( $value['title'] ); ?> <?php echo wp_kses_post( $tooltip_html ); ?></label>
	</th>
	<td class="forminp">
	<?php echo str_replace( ' id=', " data-placeholder='" . esc_attr__( 'Select a page&hellip;', 'learnpress' ) . "' style='" . $value['css'] . "' class='" . $value['class'] . "' id=", wp_dropdown_pages( $args ) ); ?> <?php echo wp_kses_post( $description ); ?>
	</td>
</tr>

```
