get_post_types(); if( ( isset( $_POST['page_options'] ) && $_POST['page_options'] === RC_SETTING_OPTION_KEY ) && ( isset( $_POST['_wpnonce'] ) && wp_verify_nonce( $_POST['_wpnonce'], 'update-options' ) ) ) { // update post $post_support_posts = ( isset($_POST['rc_support_post_types']) ) ? $_POST['rc_support_post_types'] : array(); $is_update = $component->update_support_post_type( $post_support_posts ); if ( $is_update ) { add_settings_error( 'rucy', 'update', __( 'Success to setting update.', RC_TXT_DOMAIN ), 'updated'); } $this->options = $component->get_support_post_type(); wp_safe_redirect( menu_page_url( 'rucy', false ) ); } $support_post_type = $component->get_support_post_type(); ?>

    $post_type ) { $checked = ( in_array( $key, $support_post_type ) ) ? 'checked' : ''; ?>