wordpress_adapter->is_author( $author_ids ); case Comparator_Provider::COMPARATOR_IS_NOT: return ! $this->wordpress_adapter->is_author( $author_ids ); default: return false; } } public function get_options() { $comparators = Comparator_Provider::get_comparators( [ Comparator_Provider::COMPARATOR_IS, Comparator_Provider::COMPARATOR_IS_NOT, ] ); $this->add_control( 'comparator', [ 'type' => Controls_Manager::SELECT, 'options' => $comparators, 'default' => Comparator_Provider::COMPARATOR_IS, ] ); $this->add_control( 'authors', [ 'type' => QueryControlModule::QUERY_CONTROL_ID, 'autocomplete' => [ 'object' => QueryControlModule::QUERY_OBJECT_AUTHOR, ], 'multiple' => true, 'required' => true, 'placeholder' => esc_html__( 'Type to search', 'elementor-pro' ), ] ); } }