Git Product home page Git Product logo

metadata-ui-api's Introduction

WordPress Metadata UI API

An API for building form UI for WordPress content types (post types, users, comments, Settings options, etc.).

This is a project of the WordPress core metadata team.

Documentation

For this branch there is no documentation ready yet.

Example:

	/**
	 * Example init of fields
	 */
    function example_init()  {

		register_post_type( 'pm_solution',  array(
			'label'   =>  __( 'Solutions',  'pm-sherpa' ),
			'public'  =>  true,
			'rewrite' =>  true,
			'form'    =>  'after-title'
		) );

		register_post_field( 'website', 'pm_solution',  array(
			'type'              =>  'url',
			'label'             =>  __( 'Website',  'pm-sherpa' ),
			'html_placeholder'  =>  'http://www.example.com',
			'html_size'         =>  50
		) );

		register_post_field( 'tagline', 'pm_solution',  array(
			'label'     =>  __( 'Tagline',  'pm-sherpa' ),
			'html_size' =>  50
		) );

		register_post_field( 'blurb', 'pm_solution',  array(
			'type'      =>  'textarea',
			'label'     =>  __( 'Blurb',  'pm-sherpa' ),
			'html_size' =>  160
		) );

	}
	add_action( 'init', 'example_init' );

##FAQ

Q: No Hooks in Work-in-Progress?

A: At this point we are avoid adding any hooks so we can first finalize the architecture.

Contributing

We welcome contributions. That being said, be aware that any functionality that is missing, we're probably already aware of. Take a look through existing issues, and feel free to open up a new one to discuss the changes you'd like to make. After discussion in an issue we'll be happy to review a pull request.

DISCLAIMER

This software is in alpha until otherwise noted. There is no guarantee on backwards compatibility nor a warrantee. It is not recommended to be used on any production site.

##LICENSE

GPLv2 or later. See License.

metadata-ui-api's People

Contributors

danstefancu avatar ericandrewlewis avatar mikeschinkel avatar ms-studio avatar sc0ttkclark avatar zeitguys avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.