WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Edit in Place

This plugin is for theme developers who want to let their users (site administrators) edit all the strings in the template interface.

Usage

This plugin gives you, theme developer, two useful functions to add editable texts to your template. _oi() tha echoes the text and __i() that returns it.

Why "oi"? because its easy to type.

Simple use:

<?php _oi('Please contact us'); ?>

This simple line of code will: 1. echo the text 1. Give the ability for the admin to edit it right from the front end (Ctrl + Click over the text) 1. Create an entry in the admin, so he/she can also edit ir from there

Tip: Hold Shift + Ctrl to highlight all the editable texts in the page

Its a good idea to add a description to the text, so when you go to the admin panel, you know which text is which. This would be:

<?php _oi('Please contact us', 'the text tha goes on the bottom right corner of the footer'); ?>

If the text is an attribute of an HTML element, the value of a button for example, you can not user the edit in place funcionality. In those cases you will have to disable it:

<?php _oi('Please contact us', 'the text tha goes on the bottom right corner of the footer', false); ?>

If you are using a multi language plugin, you can pass the current language, and you will have all the options in the admin:

<?php _oi('Please contact us', 'the text tha goes on the bottom right corner of the footer', 'en_US'); ?>
<?php _oi('Please contact us', 'the text tha goes on the bottom right corner of the footer', $language_code); ?>

If you need to pass the language AND disable the front end editor:

<?php _oi('Please contact us', 'the text tha goes on the bottom right corner of the footer', $language_code, false); ?>

If you want to return it to use somewhere in your code:

<?php $myvar = __i('Please contact us', 'the text tha goes on the bottom right corner of the footer'); ?>

Requires: 3.0 or higher
Compatible up to: 3.2.1
Last Updated: 2011-11-16
Downloads: 934

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.