MP_Settings::set_fields()

Fields of Tab “General Settings”.


Return Return

(array) Plugin settings fields.

  • 'enable_cookie'
    (array) Enable cookies
  • 'remove_data'
    (array) Delete data when removing the plugin


Top ↑

Source Source

File: mortgage-platform/Inc/Base/MP_Settings.php

	public function set_fields() {
		$general_fields = array(
			array(
				'id'       => 'enable_cookie',
				'title'    => __( 'Enable cookies', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => 'mortgage_platform',
					'label_for'   => 'enable_cookie',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Enable cookies', 'mortgage_platform' ),
				),
			),
			array(
				'id'       => 'remove_data',
				'title'    => __( 'Delete data when removing the plugin', 'mortgage_platform' ),
				'callback' => array( $this, 'checkbox' ),
				'args'     => array(
					'option_name' => 'mortgage_platform',
					'label_for'   => 'remove_data',
					'placeholder' => '',
					'default'     => '',
					'description' => __( 'Delete data when removing the plugin', 'mortgage_platform' ),
				),
			),

		);

		return $general_fields;

	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.