WP_ERASE_PERSONAL_USER_DATA::load_options()

load_options


Source Source

File: src/integrations/wp/actions/wp-erase-personal-user-data.php

	public function load_options() {
		$options = array(
			'options_group' => array(
				$this->action_code => array(
					Automator()->helpers->recipe->field->text(
						array(
							'option_code' => $this->action_meta . '_user',
							'label'       => esc_attr__( 'Email', 'uncanny-automator' ),
							'required'    => true,
							'tokens'      => true,
						)
					),
					array(
						'option_code' => $this->action_meta . '_flag',
						'label'       => __( 'Send personal data erasure confirmation email', 'uncanny-automator' ),
						'input_type'  => 'checkbox',
						'is_toggle'   => true,
						'description' => __( 'When this is checked, the user will receive an email to confirm the erasure of data.  If the user does not take action, their data will not be deleted.', 'uncanny-automator' ),
					),
				),
			),
		);

		$options = Automator()->utilities->keep_order_of_options( $options );

		return $options;
	}