wp_editor embed shortcode not working within my plugin

The WordPress OEmbed should show in the editor by default. If it doesn’t, I suspect that you need to enqueue some scripts and styles on your page where you are using wp_editor. Eg: wp_enqueue_script(‘editor’, false, false, false, true); wp_enqueue_script(‘quicktags’, false, false, false, true); wp_enqueue_script(‘wplink’, false, false, false, true); wp_enqueue_script(‘wpdialogs-popup’, false, false, false, true); wp_enqueue_style(‘wp-jquery-ui-dialog’, false, … Read more

what’s different between wpdb->prefix and table_prefix

The difference is pretty simple. $wpdb->prefix is getting the prefix field from global $wpdb object. $table_prefix can be anything. Most probably it’s some local variable that contains the same value, but you can assign anything to that variable. So using $wpdb->prefix is a better idea – it’s nicer, cleaner and more obvious.

WP options plugin setting not saving the selected checkboxes

Your code just outputs empty checkboxes. You have to check each box’s value and then set checked=”checked” if it’s true. <td><input type=”checkbox” placeholder=”Meta Key” name=”map_option_3″ <?php // check whether map_option_3 was saved if(isset(get_option(‘map_option_3’))) { ?>checked=”checked”<?php } ?> />Name<br> <input type=”checkbox” id=”cb_name” name=”map_option_4″ <?php // check whether map_option_4 was saved if(isset(get_option(‘map_option_4’))) { ?>checked=”checked”<?php } ?> />Price<br><input … Read more