Editable Areas for WordPress Developers
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
img
README.md
admin.php
editables.css
editables.php
index.php

README.md

WordPress Editables

Editables are small editable areas that make up the areas of your layout.

Menu

Usage

After having created your editable you can access it via the following functions:

// Prints the main content of an editable
the_editable_content( $slug );

// Prints a specific instance variable of the object
the_editable_field( $slug, $field );

// Returns the editable as an object
get_editable( $slug );

// Returns a specific instance variable of the object
get_editable_field( $slug, $field );

Todo

  • Optional "edit link" to be displayed alongside editable content
  • Give editables the option to be categorised
  • Widget that can output the content of an editable