static::get_label(), 'is_boolean' => static::is_boolean(), 'autocomplete_placeholder' => static::get_autocomplete_placeholder(), //todo will delete after removing the implementation from the other plugins 'placeholder_text' => static::get_placeholder_text(), 'validation_data' => static::get_validation_data(), ]; } /** * Boolean fields can return the condition value directly ( is_logged_in, is_logged_out ) * * @return bool */ public static function is_boolean() { return false; } /** * @return string */ public static function get_autocomplete_placeholder() { return static::get_placeholder_text(); } /** * @return string */ public static function get_placeholder_text() { return ''; } /** * @return array */ public static function get_validation_data() { return [ 'min' => 0, 'max' => 1000, ]; } /** * Determines the display order in the modal field select * * @return int */ public static function get_display_order() { return 100; } }