WordPress Page Add Custom Endpoint

Extend WordPress Page with Custom Query Variable. Set or get parameter variables using set_query_var & get_query_var. Use parse_request to filter values
Remove Featured image meta box from WordPress Admin
In WordPress, the remove_meta_box is used to remove metabox from post, page, link or any custom page form in admin section. However, remove_meta_box function doesn’t work for featured image box (postimagediv). After digging the core function, found a solution here. I just wanted to remove the ‘postimagediv’ meta box from the post edit form for […]
List only logged in author’s posts – WordPress tricks
To list logged in author’s post and put an edit link after the title you can use following function: function logged_in_author_posts(){ if( !is_user_logged_in()) return false; $user_id = get_current_user_id(); query_posts( array( ‘post_type’ => ‘post’, ‘author’ => $user_id, ‘post_status’ => ‘publish’, ‘showposts’ => ‘-1’ )); if( have_posts()): echo ‘<h2>Your posts</h2>’; echo ‘<ul>’; while (have_posts()) : the_post(); echo […]