Skip to content

A useful sample/example on how to use and implement Dilaz-Metabox plugin.

Notifications You must be signed in to change notification settings

Rodgath/Dilaz-Metabox-Options

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dilaz Metabox Options

This helps you to integrate Dilaz Metabox Plugin into your WordPress theme/plugin development.

How to use

  1. Download and install Dilaz Metabox plugin.

  2. Download Dilaz Metabox Options.

  3. Add Dilaz-Metabox-Options to the root directory of your theme or plugin.
    i) For example:

    wp-content/themes/theme-name/Dilaz-Metabox-Options

    OR

    wp-content/plugins/plugin-name/Dilaz-Metabox-Options

    ii) You can optionally rename Dilaz-Metabox-Options folder.

  4. Add the code provided below in your themes functions.php file or in your plugin's main/index file.

/**
 * Metabox Options
 */
require_once 'Dilaz-Metaboxes-Options/metabox.php';
  1. Open Dilaz-Metabox-Options folder and rename config-sample.php to config.php.
  2. Open Dilaz-Metabox-Options/config.php and edit the parameters as you want. Simple guidelines are provided beside each parameter setting.
  3. Open Dilaz-Metabox-Options/options folder and rename options-sample.php to options.php.
  4. Open Dilaz-Metabox-Options/options/options.php and add your metabox options.

NOTE:

  1. Dilaz-Metabox-Options/custom-options-sample.php contains examples that show how to use actions hooks to add custom metabox option fields to any Dilaz Metabox implementation.
  2. Dilaz-Metabox-Options/default-options.php contains default options as examples for all possible metabox fields.

config.php parameters

Parameter Type Since (Dilaz Metabox) Details
prefix string v2.5.1 Used to save settings. Must be unique.
use_type string v2.5.1 Where the panel is used. Enter theme if used within a theme OR plugin if used within a plugin.
default_options boolean v2.5.1 Whether to load default options.
custom_options boolean v2.5.1 Whether to load custom options.

Download

To get a local working copy of the development repository, do:

git clone https://github.com/Rodgath/Dilaz-Metabox-Options.git

Alternatively, you can download the latest development version as a tarball as follows:

wget --content-disposition https://github.com/Rodgath/Dilaz-Metabox-Options/tarball/master

OR

curl -LJO https://github.com/Rodgath/Dilaz-Metabox-Options/tarball/master

About

A useful sample/example on how to use and implement Dilaz-Metabox plugin.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages