How to upload and add images to the existing post from the front-end with admin approval which is posted by other user

This is a way to add post images and other things. So put different check on it according to your need. <?php if( ‘POST’ == $_SERVER[‘REQUEST_METHOD’ ] && !empty( $_POST[‘action’ ] ) && $_POST[‘action’ ] == “new_post”) { if (isset ($_POST[‘post_title’])) { $post_title = $_POST[‘post_title’]; } $post = array( ‘post_title’ => $post_title, ‘post_content’ => $post_content, … Read more

How to show WordPress Dashboard Widgets on Frontend?

After trying to build dashboard functionality on the “frontend” of a site, the WPMU multi-site alternative was to seriously minimize, strip-down, and customize a template for the user type that required that functionality. They login directly to the dashboard, or can be linked their from their account page when logging in. Everything you described is … Read more

Editing wordpress dashboard

What exactly do you mean by editing? I hope not modifying WP core files, which is considered bad practice and incompatible with updates? Administration menus are considered to be some of the most nasty parts of code in WP and are hard to deal with. For some top level overview see Administration Menus in Codex, … Read more

Show custom messages on dashboard menu page

There is number of hooks dedicated for displaying admin notices in admin-header.php: if ( is_network_admin() ) do_action(‘network_admin_notices’); elseif ( is_user_admin() ) do_action(‘user_admin_notices’); else do_action(‘admin_notices’); do_action(‘all_admin_notices’); Codex has basic example, but admin markup is not very stable so you might need to research native notices in current version to properly replicate it.

hide woo commerce dashboard status and reports from woo commerce from specific users but display to other users

For the dashboard case. if ( !current_user_can(‘manage_options’) ) { function remove_dashboard_widgets() { // remove WooCommerce Dashboard Status remove_meta_box( ‘woocommerce_dashboard_status’, ‘dashboard’, ‘normal’); } add_action(‘wp_user_dashboard_setup’, ‘remove_dashboard_widgets’, 20); add_action(‘wp_dashboard_setup’, ‘remove_dashboard_widgets’, 20); }

Custom Fields on User Dashboard?

I just found this plugin which allows you to create custom options http://wordpress.org/extend/plugins/custom-options-plus/faq/ You can then place the php code to display the value of the option inside your dashboard for members who are logged in but not administrators. You can display the value as text wrapped in a div tag and style as you … Read more

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