version. * * @since 1.8.0 */ const CLASSES = ['WPForms\Pro\Admin\Entries\DefaultScreen' => '1.8.2', 'WPForms\Pro\Integrations\AI\AI' => '1.9.4', 'WPForms\Pro\Integrations\AI\Helpers' => '1.9.4', 'WPForms_Install_Skin' => '1.9.5', 'WPForms_Install_Silent_Skin' => '1.5.6.1', 'WPForms\Helpers\PluginSilentUpgraderSkin' => '1.9.5']; /** * Inform clients that the class is removed. * * @since 1.8.0 */ public function __construct() { } /** * Inform clients that the class is removed. * * @since 1.8.0 * * @param string $name Property name. */ public function __get($name) { } /** * Inform clients that the class is removed. * * @since 1.8.0 * * @param string $name Property name. * @param mixed $value Property value. */ public function __set($name, $value) { } /** * Inform clients that the class is removed. * * @since 1.8.0 * * @param string $name Property name. */ public function __isset($name) { } /** * Inform clients that the class is removed. * * @since 1.8.0 * * @param string $name Method name. * @param array $arguments List of arguments. */ public function __call($name, $arguments) { } /** * Inform clients that the class is removed. * * @since 1.8.0 * * @param string $name Method name. * @param array $arguments List of arguments. */ public static function __callStatic($name, $arguments) { } /** * Inform clients that the class is removed. * * @since 1.8.0 * * @param string $element_name Property or method name. */ private static function trigger_error($element_name = '') { } } } namespace WPForms\Forms { class Loader extends \WPForms\Removed { } } namespace WPForms\Pro\Admin\Entries { /** * The default Entries screen showed a chart and the form entries stats. * Replaced with "WPForms\Pro\Admin\Entries\Overview". * * @since 1.5.5 * @deprecated 1.8.2 */ class DefaultScreen extends \WPForms\Removed { } } namespace { /** * Emails. * * This class handles all (notification) emails sent by WPForms. * * Heavily influenced by the great AffiliateWP plugin by Pippin Williamson. * https://github.com/AffiliateWP/AffiliateWP/blob/master/includes/emails/class-affwp-emails.php * * Note that this mailer class is no longer in active use and has been replaced with the "WPForms\Emails\Notifications" class. * Please refer to the new mailer wrapper extension to extend or add further customizations. * * @deprecated 1.8.5 * * @since 1.1.3 */ class WPForms_WP_Emails { /** * Store the from address. * * @since 1.1.3 * * @var string */ private $from_address; /** * Store the from name. * * @since 1.1.3 * * @var string */ private $from_name; /** * Store the reply-to address. * * @since 1.1.3 * * @var bool|string */ private $reply_to = \false; /** * Store the reply-to name. * * @since 1.7.9 * * @var bool|string */ private $reply_to_name = \false; /** * Store the carbon copy addresses. * * @since 1.3.1 * * @var string */ private $cc = \false; /** * Store the email content type. * * @since 1.1.3 * * @var string */ private $content_type; /** * Store the email headers. * * @since 1.1.3 * * @var string */ private $headers; /** * Whether to send email in HTML. * * @since 1.1.3 * * @var bool */ private $html = \true; /** * The email template to use. * * @since 1.1.3 * * @var string */ private $template; /** * Form data and settings. * * @since 1.1.3 * * @var array */ public $form_data = []; /** * Fields, formatted, and sanitized. * * @since 1.1.3 * * @var array */ public $fields = []; /** * Entry ID. * * @since 1.2.3 * * @var int */ public $entry_id = ''; /** * Notification ID that is currently being processed. * * @since 1.5.7 * * @var int */ public $notification_id = ''; /** * Context data to be passed to the tag. * * @since 1.9.9.2 * * @var array|array[] */ private $context_data = []; /** * Get things going. * * @since 1.1.3 */ public function __construct() { } /** * Set a property. * * @since 1.1.3 * * @param string $key Object property key. * @param mixed $value Object property value. */ public function __set($key, $value) { } /** * Get the email from name. * * @since 1.1.3 * * @return string The email from name */ public function get_from_name() { } /** * Get the email from address. * * @since 1.1.3 * * @return string The email from address. */ public function get_from_address() { } /** * Get the email reply-to. * * @since 1.1.3 * * @return string The email reply-to address. */ public function get_reply_to() { } /** * Get the email carbon copy addresses. * * @since 1.3.1 * * @return string The email reply-to address. */ public function get_cc() { } /** * Get the email content type. * * @since 1.1.3 * * @return string The email content type. */ public function get_content_type() { } /** * Get the email headers. * * @since 1.1.3 * * @return string The email headers. */ public function get_headers() { } /** * Build the email. * * @since 1.1.3 * * @param string $message The email message. * * @return string */ public function build_email($message) { } /** * Send the email. * * @since 1.1.3 * * @param string $to The To address. * @param string $subject The subject line of the email. * @param string $message The body of the email. * @param array $attachments Attachments to the email. * * @return bool */ public function send($to, $subject, $message, $attachments = []) { } /** * Add filters/actions before the email is sent. * * @since 1.1.3 */ public function send_before() { } /** * Remove filters/actions after the email is sent. * * @since 1.1.3 */ public function send_after() { } /** * Convert text formatted HTML. This is primarily for turning line breaks * into

and
tags. * * @since 1.1.3 * * @param string $message Text to convert. * * @return string */ public function text_to_html($message) { } /** * Process a smart tag. * Decodes entities and sanitized (keeping line breaks) by default. * * @uses wpforms_decode_string() * * @since 1.1.3 * @since 1.6.0 Deprecated 2 params: $sanitize, $linebreaks. * * @param string $content String that may contain tags. * * @return string|mixed */ public function process_tag($content = '') { } /** * Process the all fields smart tag if present. * * @since 1.1.3 * * @param bool $is_html_email Toggle to use HTML or plaintext. * * @return string */ public function wpforms_html_field_value($is_html_email = \true) { } /** * Email kill switch if needed. * * @since 1.1.3 * * @return bool */ public function is_email_disabled() { } /** * Get the enabled email template. * * @since 1.1.3 * * @return string When filtering return 'none' to switch to text/plain email. */ public function get_template() { } /** * Retrieve a template part. Taken from bbPress. * * @since 1.1.3 * * @param string $slug Template file slug. * @param string $name Optional. Default null. * @param bool $load Maybe load. * * @return string */ public function get_template_part($slug, $name = \null, $load = \true) { } /** * Retrieve the name of the highest priority template file that exists. * * Search in the STYLESHEETPATH before TEMPLATEPATH so that themes which * inherit from a parent theme can just overload one file. If the template is * not found in either of those, it looks in the theme-compat folder last. * * Taken from bbPress. * * @since 1.1.3 * * @param string|array $template_names Template file(s) to search for, in order. * @param bool $load If true the template file will be loaded if it is found. * @param bool $require_once Whether to require_once or require. Default true. * Has no effect if $load is false. * * @return string The template filename if one is located. */ public function locate_template($template_names, $load = \false, $require_once = \true) { } /** * Return a list of paths to check for template locations * * @since 1.1.3 * * @return array */ public function get_theme_template_paths() { } /** * Perform email subject preparation: process tags, remove new lines, etc. * * @since 1.6.1 * * @param string $subject Email subject to post-process. * * @return string */ private function get_prepared_subject($subject) { } } /** * Base field template. * * @since 1.0.0 */ abstract class WPForms_Field { use \WPForms\Forms\Fields\Traits\MultiFieldMenu; use \WPForms\Forms\Fields\Traits\ReadOnlyField; /** * Common default field settings. * * @since 1.9.4 * * @var array */ private const COMMON_DEFAULT_SETTINGS = ['id' => 0, 'type' => '', 'label' => '', 'description' => '', 'size' => 'medium', 'default_value' => '', 'css' => '', 'read_only' => 0]; /** * Full name of the field type, e.g. "Paragraph Text". * * @since 1.0.0 * * @var string */ public $name; /** * Type of the field, eg "textarea". * * @since 1.0.0 * * @var string */ public $type; /** * Font Awesome Icon used for the editor button, e.g. "fa-list". * * @since 1.0.0 * * @var mixed */ public $icon = \false; /** * Field keywords for search, e.g. "checkbox, file, icon, upload". * * @since 1.8.3 * * @var string */ public $keywords = ''; /** * Priority order the field button should show inside the "Add Fields" tab. * * @since 1.0.0 * * @var int */ public $order = 1; /** * Field group the field belongs to. * * @since 1.0.0 * * @var string */ public $group = 'standard'; /** * Placeholder to hold default value(s) for some field types. * * @since 1.0.0 * * @var mixed */ public $defaults; /** * Default field settings. * * @since 1.9.4 * * @var mixed */ public $default_settings; /** * Current form ID in the admin builder. * * @since 1.1.1 * * @var int|false */ public $form_id; /** * Current field ID. * * @since 1.5.6 * * @var int */ public $field_id; /** * Current form data. * * @since 1.1.1 * * @var array */ public $form_data; /** * Current field data. * * @since 1.5.6 * * @var array */ public $field_data; /** * Instance of the Frontend class. * * @since 1.8.1 * * @var FrontendBase */ protected $frontend_obj; /** * Primary class constructor. * * @since 1.0.0 * * @param bool $init Pass false to allow shortcutting the whole initialization, if needed. */ public function __construct($init = \true) { } /** * Common field hooks. * * @since 1.9.4 */ protected function common_hooks(): void { } /** * All systems go. Used by subclasses. Required. * * @since 1.0.0 * @since 1.5.0 Converted to abstract method, as it's required for all fields. */ abstract public function init(); /** * Prefill the field value with either fallback or dynamic data. * This needs to be public (although internal) to be used in WordPress hooks. * * @since 1.5.0 * * @param array $properties Field properties. * @param array $field Current field specific data. * @param array $form_data Prepared form data/settings. * * @return array Modified field properties. */ public function field_prefill_value_property($properties, $field, $form_data) { } /** * As we are processing user submitted data - ignore all admin-defined defaults. * Preprocess choice-related fields only. * * @since 1.5.0 * * @param array $field Field data and settings. * @param array $properties Properties we are modifying. */ public function field_prefill_remove_choices_defaults($field, &$properties): void { } /** * Whether the current field can be populated dynamically. * * @since 1.5.0 * * @param array $properties Field properties. * @param array $field Current field specific data. * * @return bool */ public function is_dynamic_population_allowed($properties, $field) { } /** * Prefill the field value with a dynamic value that we get from $_GET. * The pattern is: wpf4_12_primary, where: * 4 - form_id, * 12 - field_id, * first - input key. * As 'primary' is our default input key, "wpf4_12_primary" and "wpf4_12" are the same. * * @since 1.5.0 * * @param array $properties Field properties. * @param array $field Current field specific data. * * @return array Modified field properties. */ protected function field_prefill_value_property_dynamic($properties, $field) { } /** * Public version of get_field_populated_single_property_value() to use by external classes. * * @since 1.6.0.1 * * @param string $raw_value Value from a GET param, always a string. * @param string $input Represent a subfield inside the field. Maybe empty. * @param array $properties Field properties. * @param array $field Current field specific data. * * @return array Modified field properties. */ public function get_field_populated_single_property_value_public($raw_value, $input, $properties, $field) { } /** * Get the value used to prefill via dynamic or fallback population. * Based on field data and current properties. * * @since 1.5.0 * * @param string $raw_value Value from a GET param, always a string. * @param string $input Represent a subfield inside the field. Maybe empty. * @param array $properties Field properties. * @param array $field Current field specific data. * * @return array Modified field properties. */ protected function get_field_populated_single_property_value($raw_value, $input, $properties, $field) { } /** * Get the value used to prefill via dynamic or fallback population. * Based on field data and current properties. * Dynamic choices section. * * @since 1.6.0 * * @param string $get_value Value from a GET param, always a string, sanitized, stripped slashes. * @param array $properties Field properties. * * @return array Modified field properties. */ protected function get_field_populated_single_property_value_dynamic_choices($get_value, $properties) { } /** * Fill choices without labels. * * @since 1.6.2 * * @param array $form_data Form data. * * @return array */ public function field_fill_empty_choices($form_data) { } /** * Get the value used to prefill via dynamic or fallback population. * Based on field data and current properties. * Normal choices section. * * @since 1.6.0 * * @param string $get_value Value from a GET param, always a string, sanitized. * @param array $properties Field properties. * @param array $field Current field specific data. * * @return array Modified field properties. */ protected function get_field_populated_single_property_value_normal_choices($get_value, $properties, $field) { } /** * Handle the dropdown items field with quantities. * * @since 1.9.0 * * @param array $properties Field properties. * @param array $field Current field specific data. * * @return array */ private function add_quantity_to_populated_field_properties(array $properties, array $field): array { } /** * Whether the current field can be populated dynamically. * * @since 1.5.0 * * @param array $properties Field properties. * @param array $field Current field specific data. * * @return bool */ public function is_fallback_population_allowed($properties, $field) { } /** * Prefill the field value with a fallback value from form submission (in case of JS validation failed), that we get from $_POST. * * @since 1.5.0 * * @param array $properties Field properties. * @param array $field Current field specific data. * * @return array Modified field properties. */ protected function field_prefill_value_property_fallback($properties, $field) { } /** * Init and return field default settings. * * @since 1.9.4 * * @return array */ public function field_default_settings(): array { } /** * Get field data for the field. * * @since 1.8.2 * * @param array $field Current field. * * @return array */ public function field_new_default($field): array { } /** * Get field data for the field. * * @since 1.8.2 * * @param array $field Current field. * @param array $form_data Form data and settings. * * @return array */ public function field_data($field, $form_data) { } /** * Create the button for the 'Add Fields' tab, inside the form editor. * * @since 1.0.0 * * @param array $fields List of form fields with their data. * * @return array */ public function field_button($fields) { } /** * Enhances template fields by adding keywords. * * @since 1.8.6 * * @param array $template_fields List of template fields. * * @return array */ public function enhance_template_fields_with_keywords(array $template_fields): array { } /** * Adds keywords to the provided fields. * * @since 1.8.6 * * @param array $fields List of fields to which keywords will be added. * * @return void */ private function add_keywords(array &$fields): void { } /** * Create the field options panel. Used by subclasses. * * @since 1.0.0 * @since 1.5.0 Converted to abstract method, as it's required for all fields. * * @param array $field Field data and settings. */ abstract public function field_options($field); /** * Create the field preview. Used by subclasses. * * @since 1.0.0 * @since 1.5.0 Converted to abstract method, as it's required for all fields. * * @param array $field Field data and settings. */ abstract public function field_preview($field); /** * Helper function to create field option elements. * * Field option elements are pieces that help create a field option. * They are used to quickly build field options. * * @since 1.0.0 * * @param string $option Field option to render. * @param array $field Field data and settings. * @param array $args Field preview arguments. * @param bool $do_echo Print or return the value. Print by default. * * @return string|null echo or return string * @noinspection HtmlUnknownAttribute * @noinspection HtmlWrongAttributeValue */ public function field_element($option, $field, $args = [], $do_echo = \true) { } /** * Create field option toggle element. * * @since 1.6.8 * * @param array $args Arguments. * @param string $class_name Class name. * @param int $id Field ID. * @param string $slug Field slug. * @param string $attrs Attributes. * * @return string */ private function field_element_toggle(array $args, string $class_name, int $id, string $slug, string $attrs): string { } /** * Create field option select element. * * @since 1.9.8 * * @param array $args Arguments. * @param string $class_name Class name. * @param int $id Field ID. * @param string $slug Field slug. * @param string $attrs Attributes. * * @return string * @noinspection HtmlUnknownAttribute */ protected function field_element_select(array $args, string $class_name, int $id, string $slug, string $attrs): string { } /** * Helper function to create common field options that are used frequently. * * @since 1.0.0 * * @param string $option Field option to render. * @param array $field Field data and settings. * @param array $args Field preview arguments. * @param bool $do_echo Print or return the value. Print by default. * * @return string|null echo or return string * @noinspection HtmlUnknownAttribute * @noinspection HtmlUnknownTarget * @noinspection HtmlWrongAttributeValue * @noinspection PhpMissingReturnTypeInspection * @noinspection ReturnTypeCanBeDeclaredInspection * @noinspection HtmlRequiredAltAttribute */ public function field_option($option, $field, $args = [], $do_echo = \true) { } /** * Get choice images hide an option field element. * * @since 1.9.8.3 * * @param array $field Field data and settings. * * @return string */ private function choices_images_hide_option(array $field): string { } /** * Get choice limit option field element. * * @since 1.9.7 * * @param array $field Field data and settings. * * @return string */ private function choice_limit_option(array $field): string { } /** * Helper function to create common field options that are used frequently * in the field preview. * * @since 1.0.0 * @since 1.5.0 Added support for