Dashboard :10 Last draft page and 10 last pending review page (metabox)

#dahsboard BOXES #Last edited pages add_action( ‘wp_dashboard_setup’, ‘admin_dashboard_last_edits_register’ ); function admin_dashboard_last_edits_register() { wp_add_dashboard_widget( __FUNCTION__, __( ‘Last published pages ‘, ‘admin-dashboard-last-edits’ ), ‘admin_dashboard_last_edits_dashboard_widget’); } function admin_dashboard_last_edits_dashboard_widget() { $posts = get_posts( array ( ‘numberposts’ => 10, ‘post_type’ => array ( ‘page’ ), ‘orderby’ => ‘modified’) ); if ( $posts ) { $date_format = get_option( ‘date_format’ ); echo … Read more

WordPress Comments are automatically publishing

An administrator is normal the highest level of user in WordPress. If you want to approve every comments, even administrator comments, maybe you can use the moderation filter. If you go to Settings > Discussion Settings > Comment Moderation. You could setup an “cache all” filter. If you put all letters of the alphabet and … Read more

Can we have private drafts?

I would probably create a custom field / check box for this for a draft stage. Then hook into post status transition (or around) and when post is published force it to only private, even if normal publish was pressed. From personal experience custom post statuses are a wreck. They seem like a good idea, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)