ensure user can only be logged in on one computer at a time?
A simple way could be hooking into the login process and check if the user is already logged. There is a ‘wp_authenticate’ action that runs just before loggin in an user.
A simple way could be hooking into the login process and check if the user is already logged. There is a ‘wp_authenticate’ action that runs just before loggin in an user.
Modifying and re-purposing core fields in posts database is not advisable. Core behavior might easily change and break it. It is trivial to store any additional info in custom fields which is meant for abitrary data and does not interfere with normal mechanics.
You got a preg_match_all(), various JOINs, anonymous/lambda functions. In short: Everything that makes debugging hard and is performance wise a no-go. In short: You should use a meta_query instead. Take a look at Code meta_query » Multiple Custom Field Handling:
I finally managed to solve my issue, but not in the most elegant way : polling. I would still be interested in more elegant solution ! The main issue I have is that the point move is done in the iframe containing the site preview, whereas the theme customizer form inputs are in the main … Read more
I found out I needed to add html_entity_decode() around the value so my final code is… /** * Add Copyright text to general settings menu */ $custom_general_settings = new FD_Custom_General_Settings(); class FD_Custom_General_Settings { function __construct() { add_filter(‘admin_init’, array(&$this , ‘register_fields’)); } function register_fields() { register_setting(‘general’, ‘footer_text’, ‘esc_attr’); add_settings_field(‘footer_text’, ‘<label for=”footer_text”>’.__(‘Footer Text’ , ‘footer_text’ ).'</label>’ , … Read more
WordPress has some pretty solid documentation for this. What you are asking for will require that you learn a good bit of programming. Check out here for basic plugin development information: https://codex.wordpress.org/Writing_a_Plugin This page has specific information about making your own administration panels: https://codex.wordpress.org/Adding_Administration_Menus If this is something you are passionate about I would consider … Read more
I would use a custom query This explains how to search for keywords in a custom table. You could adjust this as required to your table and required output.
Re-arranging the comment fields The comment text area has been moved to the top in WordPress 4.4: What if we prefer the old setup, where it was at the bottom? Re-arranging the author, url and email comment fields We can modify the display order, of the author, url and email fields, with: /** * Re-arranging … Read more
The customizer needs the sidebar to be “displayed” in order to detect its existence on the page. In your code you display the sidebar only if it is “active” which means that it has at least one widget in it, otherwise when no widgets are included it is not displayed and therefore the customizer can … Read more
Please see the Customize Posts plugin. It has a WP_Customize_Post_Setting and WP_Customize_Postmeta_Setting for representing posts and postmeta in the customizer, respectively.