How to remove traces from widget during uninstallation
How to remove traces from widget during uninstallation
How to remove traces from widget during uninstallation
The 2nd example isn’t a different type of setting, it’s just an array of data that the plugin will probably turn into settings somewhere else in the code. I can’t tell from just this code exactly what type of settings it will use or how it does that. The actual two types of settings are … Read more
It looks like your serialized settings are corrupted. I created the option mfwp_settings with the value array( ‘test’ => ‘response’ ). When I look at this in the database, the value is stored as a serialized array and looks like this: a:1:{s:4:”test”;s:8:”response”;} Here is a simple debugging function that successfully returns the expected value response … Read more
Options page – dropdown of users
I think I understand what you’re trying to accomplish, but correct me if this is off base. You have an array that being specified in another file. You want users to be able to append values to that default array by using an options form. Here’s what I would do: When you’re preparing this array … Read more
add_image_size( ‘medium-something’, 480, 480 ); // Register the useful image size for use in Add Media modal add_filter( ‘image_size_names_choose’, ‘your_custom_sizes’ ); function your_custom_sizes( $sizes ) { return array_merge( $sizes, array( ‘medium-something’ => __( ‘Medium Something’ ), ) ); } Be aware that if the size does not already exist for an image, it will not … Read more
How to set wp_editor to be email friendly?
Show admin notice on incorrect value on form field
Custom setting to show or hide field
I’m having some dificulties in understaning what’s going in your code. But I would suspect this problematic part is, if(isset( $_POST[‘p_status_update’] ) ){ $renewal = $_POST[‘renewal’]; $frent = $_POST[‘future-rent’]; $available = $_POST[‘available’]; $deposit = $_POST[‘deposit’]; $lastShowing = $_POST[‘last-showing’]; $status = $_POST[‘status’]; $date = $_POST[‘date’]; $initials = $_POST[‘initials’]; $notes = $_POST[‘notes’]; update_option(‘renewal’, $renewal); update_option(‘future-rent’, $frent); update_option(‘available’, … Read more