Skip to content

rkwebproject/Post-Meta-Box-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Metabox generator

Generate Wordpress Metaboxes

Include metabox.php in your theme function file

Add this code to function

$arg = array(
   "meta_slug"=>"your_slug", // add meta box slug
   "meta_name"=>"your meta box name", // add meta box name
   "post_type"=>array("post_type"), // add post type where to show meta box
   "fields" => array(
      //array("name"=>"name", "type"=>"text", "required"=>false, "validate_type"=>"name"),
      array("name"=>"name", "type"=>"text", "required"=>false), //fields
      array("name"=>"phone", "type"=>"text", "required"=>false),//fields
      array("name"=>"email", "type"=>"text", "required"=>false)//fields
   )
);
new Generate_Meta_Box($arg);

Releases

No releases published

Packages

No packages published

Languages