Better bootstrap accordionThere are a few issues (things I dont like) about the bootstrap accordion: 1- The title is inline, so you have to click the text part to activate it 2- There is no indication if th...
There are various ways to get user_ID in WP. But which one is the fastest ? I’ve compared 3 ways function get_uid_from_global() { global $current_user; return $current_user-&...
get_plugin_data() only in admin ? Why ?It provides crucial plugin info and many pointers. Like plugin folder, plugins name, plugins main file . More importantly, it could help you with a global unique_slug. More on this...
My metaboxes suddenly stopped working. If that’s the case for you, and you are clueless, try resetting $id for your meta_box...
<?php function notify_post_status( $post_id = NULL, $user = '' ) { if ( ! isset($_POST["post_id"]) ) { $post_id = $_POST["post_id"]; } else { return $post_id; } $post = get_post...