Remove specific plugins and themes from the Dashboard->Updates page [duplicate]

There are two hooks you can use: ‘site_transient_update_plugins’, and ‘site_transient_update_themes’. Plugins To disable update for ‘fpw-category-thumbnails’ plugin, put the following code in functions.php of your theme ( child theme ): function remove_plugin_updates($value) { unset($value->response[‘fpw-category-thumbnails/fpw-category-thumbnails.php’]); return $value; } add_filter(‘site_transient_update_plugins’, ‘remove_plugin_updates’); If you want to disable updates for all plugins, use the following code: function remove_plugin_updates($value) { … Read more

Develop Admin Panel Page

WP_List_Table class is used to generate the List Tables that populate WordPress’ various admin screens. It has an advantage over previous implementations in that it can be dynamically altered with AJAX and may be hooked in future WordPress releases. If you want to use this class pay attention to this warning by WordPress. This class’s … Read more

read excel file in the dasboard programmatically

To read a excel file inside wordpress, is there any function available WordPress does not provide functions for reading spreadsheets. PHP provides functions for reading CSV files via fgetcsv etc, but these are for .csv files. If you want to open an xls or xlsx file in code, and read its contents, you will need … Read more

Have mu-plugin remove meta box ONLY if it isn’t already removed in functions.php

Hmm, a lazy workaround—as long as you’re not running PHP < 5.3.0—might be to use a namespace in your mu-plugins file. Something like this might do the trick: <?php namespace Arglebargle; \add_action( ‘wp_dashboard_setup’, ‘Arglebarle\remove_x_widget’ ); function remove_x_widget() { // If the meta box has already been removed, it shouldn’t be an // issue to ‘remove’ … Read more

How do I add content to the dashboard in WordPress?

<?php /* Plugin Name: Dashboard Google Page Rank Plugin URI: http://wordpress.org/extend/plugins/dashboard-google-pagerank/ Description: Shows your google pagerank in the wordpress dashboard Author: Weston Deboer Version: 1.1 Author URI: http://westondeboer.com */ function gpr_wp_dashboard_test() { include(‘yourfile.php’); } function gpr_wp_dashboard_setup() { wp_add_dashboard_widget( ‘gpr_wp_dashboard_test’, __( ‘Google Page Rank’ ),’gpr_wp_dashboard_test’); } add_action(‘wp_dashboard_setup’, ‘gpr_wp_dashboard_setup’); ?> I have made a small modification to … Read more

Dashboard Widget drawn before opening HTML tag

Your add_action should call the function that registers the dashboard widget, which then in turn calls the function to render the widget. Right now you have the add_action calling the function to render the widget directly. change: add_action( ‘wp_dashboard_setup’, ‘draw_widget’ ); to: add_action( ‘wp_dashboard_setup’, ‘example_add_dashboard_widgets’ );

In the Admin Dashboard, can I choose which sections to display?

If you just want to remove the menu options, you can use the remove_menu_page function in your functions.php file remove_menu_page Add this code to functions.php: function remove_menus(){ remove_menu_page( ‘index.php’ ); //Dashboard remove_menu_page( ‘edit-comments.php’ ); //Comments remove_menu_page( ‘themes.php’ ); //Appearance remove_menu_page( ‘plugins.php’ ); //Plugins remove_menu_page( ‘users.php’ ); //Users remove_menu_page( ‘tools.php’ ); //Tools remove_menu_page( ‘options-general.php’ ); //Settings … Read more

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