How can I remove these options from the dashboard?

You can use the remove_menu_page function from the admin_menu action. An example for you would be to add this to your functions file (this will remove those menu links for you as well). function remove_menus() { remove_menu_page( ‘options-general.php’ ); remove_menu_page( ‘profile.php’ ); } add_action( ‘admin_menu’, ‘remove_menus’ ); If you need to be more specific to … Read more

Empty Dashboard in WordPress

I know this post is old but the right answer may help someone else. Sounds like you are still using WordPress 3.* because it has a bug causing the issue. You need to be sure you’re using the right version of Apache and PHP as required by the copy of WordPress version you just upgraded … Read more

Term Meta – saving multiple values in one form with select options

I found the solution, all credit goes to @gmazzap, who gave this great answer in this post: How do I save each option in a multiple select menu as it’s own meta_key + meta_value pair? add_action( ‘created_house_feature’, ‘save_house_feature_meta’, 10, 2 ); function save_house_feature_meta( $term_id, $tt_id ) { $old_feature_group = get_term_meta( $term->term_id, ‘feature-group, true’ ); $new_feature_groups … Read more

Saving Embed Code From Dashboard Widget

Ok, so the main problem here is ultimately just that wp_filter_post_kses is probably filtering out iframes. But I also want to address the round about way you’re handling the form. You’re not doing AJAX, which is sending the request to the server via Javascript, but you’re trying to hook into the AJAX hooks and then … Read more

How do i add a unique body class to the wordpress dashboard’s home page?

If I’m not mistaken, you could just use body.wp-admin.index-php to target the dashboard. If you want to add something else, you can use the admin_body_class filter to manipulate the classes added to the body and check what is displayed with get_current_screen: add_filter(“admin_body_class”, function($classes) { $current_screen = get_current_screen(); if($current_screen->base == “dashboard”) { $classes .= ” dashboard”; … Read more

WP Dashboard video modal on load

I found an old thread, How to stop showing admin notice after close button has been clicked, related to your question. I think the accepted answer’s b) method could be applied to your situation. b. Keep a history of the dismissal of the notice, with your own dismiss action: function my_plugin_notice() { $user_id = get_current_user_id(); … Read more

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