How to save the option’s new values plus old value without overwrite old one

You are misspelling the variables names. You define them as $new_value and $old_value with underscore that you forgot about. Except this your code working fine. function myplugin_update_field_foo( $new_value, $old_value ) { if ($new_value !== $old_value && is_array($old_value) && is_array($new_value)) { $new_value = array_unique( array_merge( $new_value, $old_value ) ); } return $new_value; } To get the … Read more

How to change the deafult template in WordPress plugin

For your plugin question, you need to contact the plugin’s support guys. Plugin questions are not within scope here. For information about templates, start here to gain knowledge on how they work: https://codex.wordpress.org/Templates. Templates are part of the theme, so to change the template, you have to change the template used by the theme. But … Read more

jquery plugin won’t fire when hamburger class element clicked

This should work for you. I just copied your code and made adjustments. jQuery.noConflict(); jQuery(“li.menu-item-47 a”).on(“click”,function( event ) { event.preventDefault(); if(confirm(“YOU ARE LEAVING THE WEBSITE” + ‘\n’ + “” + ‘\n’ + “You are being connected to a secure bill payment system. Press Ok to continue.”)) { window.open( this ,’_blank’); //This will open the website … Read more

Field salespeople task management

This could be built out fairly easily without a plugin and a little research. Here is a broad overview of what I would most likely do. Use the admin to add/edit/remove data Create a new custom post type called addresses (or jobs if that makes more sense) Setup custom taxonomies and custom fields to hold … Read more