data = $contact_data->get_data(); } /** * Get title. * * @since 1.1.0 * @return string */ abstract public function get_title(); /** * Get name. * * @since 1.1.0 * @return string */ abstract public function get_name(); /** * Get type. * * @since 1.1.0 * @return string */ abstract public function get_type(); /** * Get value. * * @since 1.1.0 */ public function get_value() { if ( empty( $this->data[ str_replace( '-', '_', $this->get_name() ) ] ) ) { return ''; } return $this->data[ str_replace( '-', '_', $this->get_name() ) ]; } /** * It is pro or not. * * @since 1.1.0 */ abstract public function is_pro(); /** * All the conditions are not searchable by default. * * @return false * @since 1.1.0 */ public function is_searchable() { return false; } /** * Check if the condition is active or not, Conditions are active by default. * * @return bool */ public function is_active() { return true; } }