Inventory_Presser_Options::rename_option()

rename_option


Description Description

Rename the option used by this plugin from "_dealer_settings" to "inventory_presser"


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-dealership-options.php

			$options .= sprintf(
				'<option value="%s"%s>%s</option>',
				$key,
				selected( $selected_value, $key, false ),
				str_replace( '_', ' ', ucfirst( $key ) )
			);
		}

		$attribute_string = '';
		if( ! empty( $attributes ) )
		{
			$attribute_string = ' ' . str_replace( "=", '="', http_build_query( $attributes, null, '" ', PHP_QUERY_RFC3986 ) ) . '"';
		}

		return sprintf(
			'<select%s>%s</select>',
			urldecode( $attribute_string ),
			$options
		);
	}
	
	/**
	 * options_page_content
	 * 
	 * Outputs the settings page HTML content
	 *
	 * @return void
	 */
	public function options_page_content()
	{
		wp_enqueue_script( 'invp_page_settings' );

		$this->option = INVP::settings();

		?><div class="wrap">
			<h2><?php _e( 'Inventory Presser Settings', 'inventory-presser' ); ?></h2>
			<?php settings_errors();

			?><form method="post" action="options.php">
				<?php
					settings_fields( 'dealership_options_option_group' );
					do_settings_sections( 'dealership-options-admin' );
					submit_button();