removing the standard dashboard widgets in WP so I Can replace with custom

the above example has the wrong comma type probably from copy and pasting. Here is the right type //Disable Default Dashboard Widgets function remove_dashboard_meta() { remove_meta_box(‘dashboard_incoming_links’, ‘dashboard’, ‘normal’); remove_meta_box(‘dashboard_plugins’, ‘dashboard’, ‘normal’); remove_meta_box(‘dashboard_primary’, ‘dashboard’, ‘normal’); remove_meta_box(‘dashboard_secondary’, ‘dashboard’, ‘normal’); remove_meta_box(‘dashboard_quick_press’, ‘dashboard’, ‘side’); remove_meta_box(‘dashboard_recent_drafts’, ‘dashboard’, ‘side’); remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); remove_meta_box(‘dashboard_right_now’, ‘dashboard’, ‘normal’); remove_meta_box(‘dashboard_activity’, ‘dashboard’, ‘normal’); remove_meta_box(‘rg_forms_dashboard’, ‘dashboard’, ‘normal’); … Read more

How to get all post status

As documented you can set the post_status argument to ‘any’ to retrive …any status except those from post statuses with ‘exclude_from_search’ set to true (i.e. trash and auto-draft). So: $args[‘post_status’] = ‘any’;

Outputting post content to jQuery .html() string

Well, just figured it out by using different search terms: https://stackoverflow.com/questions/10757671/how-to-remove-line-breaks-no-characters-from-the-string To remove HTML breaks from PHP returns (not actually called “line breaks” because they may get confused with the br tag) you’d have to use something like str_replace() with the \r and \n characters which are PHP breaks. In my case, this is what … Read more