ifrtest
123

My metaboxes suddenly stopped working. If that’s the case for you, and you are clueless, try resetting $id for your meta_box
as of 4.0, WP doesnt use define(‘WPLANG’, ‘en_GB’); in wp-config but uses $locale=’fr_FR’;
So I wasn’t able to add new items to wordpress menu and found out that the reason is the POST limit but adding max_input_vars = 2000 did not solve the problem (default is 1000). If you have suhosin and cant add new menu items or save your menu, you have to add the below to your…
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, and get_file_data() workaround later…
<?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($post_id); $status = $post->post_status; $type = $post->post_type; $author_id = intval($post->post_author); $user = get_userdata( $author_id ); //ignore admin if( $author_id == 1 ) return; // Which statuses should…
So all you need is a post->ID whats the fastest way to get it ? Jump to conclusion or lets evaluate our options here: query_posts(), get_posts(),wp_query(), $wpdb As a rule of thumb, usually we can say $wpdb > wp_query > get_posts > query_posts, meaning; you should almost never ever use query_posts. And usually between the…