We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, all the details about editing a particular option need to be passed on ajax each request.
It would be safer and more efficient to register them beforehand and just pass the key. Here's how it would work:
First, call register_editable_option() in your functions.php file:
register_editable_option()
functions.php
register_editable_option( array( 'key' => 'whatever', 'type' => 'rich', 'default' => 'foobar' ) );
Then, in your template files, just pass the key:
<?php editable_option( 'whatever' ); ?>
The text was updated successfully, but these errors were encountered:
On the other hand, having to register potentially dozens of options before using them can get tedious.
Sorry, something went wrong.
No branches or pull requests
Currently, all the details about editing a particular option need to be passed on ajax each request.
It would be safer and more efficient to register them beforehand and just pass the key. Here's how it would work:
First, call
register_editable_option()
in yourfunctions.php
file:Then, in your template files, just pass the key:
The text was updated successfully, but these errors were encountered: