$settings Field configuration. * @var mixed $value Current saved value. * @var string $module_id Module ID. * * @package Merchant * @since 2.2.5 */ if ( ! defined( 'ABSPATH' ) ) { exit; } $options = array( '' => esc_html__( 'Default', 'merchant' ), ); /** @var WP_Post[] $size_chart_posts */ $size_chart_posts = get_posts( array( 'post_type' => 'merchant_size_chart', 'posts_per_page' => - 1, 'post_status' => 'publish', ) ); if ( ! empty( $size_chart_posts ) ) { foreach ( $size_chart_posts as $_post ) { $options[ $_post->ID ] = $_post->post_title; } } ?>