__( 'Select Page', 'uael' ), 'type' => 'uael-query-posts', 'post_type' => 'page', 'multiple' => true, 'condition' => $condition, ); } /** * Check condition * * @access public * * @param String $settings return settings. * @param String $operator return relationship operator. * @param String $value value. * @since 1.32.0 */ public function compare_value( $settings, $operator, $value ) { $show = false; $page_id = get_the_id(); if ( is_array( $value ) && ! empty( $value ) ) { foreach ( $value as $_key => $_value ) { if ( $page_id == $_value ) { // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison if ( 'not' !== $operator ) { return UAEL_Helper::display_conditions_compare( true, true, $operator ); } else { $show = true; } } } } if ( 'not' === $operator ) { return UAEL_Helper::display_conditions_compare( $show, true, $operator ); } return false; } }