Skip to content

leocaseiro/WordPress-Plugin-Custom-Options-Plus

Repository files navigation

WordPress Custom Options Plus Plugin

Join the chat at https://gitter.im/WordPress-Plugin-Custom-Options-Plus/Lobby WordPress plugin WordPress WordPress WordPress rating

WordPress Custom Options Plus is the easiest way to add your custom variables as a Settings Page for your Theme. It works similar to wp_options, but you don' need to create your own forms.

PS: It uses an extra table on your MySQL

Description

It's very useful for beginners or who doesn't want to create a settings page as a plugin. If you are not a expertise in PHP, just follow the instructions following the FAQ tab.

You can for example, register the address and phone numbers of your company to leave on the header of your site. So, if your client needs to update they phone number, they can easily update through this plugin.

Also, you can use to enter a social network link, as Twitter, Facebook, Youtube, Instagram, Pinterest and more.

This Plugin was Based on Custom Settings (Custom Configs) which has been removal from WordPress Repository.

Support

Open an Issue, please

Installation

  1. Download the plugin.
  2. Activate the plugin.
  3. Configure the administration panel in Settings > Custom Options Plus and customize your options plus

FAQ (Frequently Asked Questions)

Used to single option

<?php echo get_custom('name'); ?>

Used to multiples options

<?php
	// Default get_customs returns a list(array)
	$array = get_customs('array_name');
	foreach ( $array as $name ) :
		echo $name;
	endforeach;

	// Second parameter set to true for get_customs returns a collection(array) with `label` and `value`
	$array = get_customs('array_name', true);
	foreach ( $array as $name ) :
		echo $name['label'] . ' - '. $name['value'];
	endforeach;
?>

Changelog

1.8.1

  • minor fixes on help. Thanks @janrenn

1.8.0

  • get_customs() returns a collection (optional). Thanks @kas-cor

1.7.1

  • Fixed array bug that generated errors in old PHP versions. Thanks @AdvancedStyle

1.7.0

  • Add Settings link on Plugins Page
  • Add Import and Export (Thanks @lucasbhjf for his contribution)

1.6

1.5

  • Lot of best practices improvements on code
  • ESCAPE bug fix following suggestion from @pierre-r on github Issue #4
  • SQL Injection improvement using correctly $wpdp->prepare
  • Plugin Version added
  • Admin Layout improvements
  • Automatic name generated only on Add New mode

1.4.1

  • README improvements

1.4

  • Update stringToSlug Plugin
  • Tested up to WordPress 4.0
  • Add Plugin Icon for WordPress 4.0

1.1

1.3

  • Add automatic name genrated from Label using jQuery stingToSlug Plugin

1.2

  • New item button and UTF8 bug fix
  • Tested up to WordPress 3.8.1

1.0

  • First stable release version

License

Copyright (c) 2011-2016 Leo Caseiro. This is free software and is licensed under the GPL2 License

Created and maintained by Leo Caseiro

About

With Custom Options Plus WordPress Plugin, you can enter your custom options datas for your theme.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •