<?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 the above plugin. But all you should need to do is include your file which displays the data and it should show your widget in the admin dashboard.
Related Posts:
- Extension preview disapeared since WP 4.5.2
- Delete Custom Dashboard Widgets
- Editor access to plugin settings
- How to develop a community feature in the dashboard for multiauthor site
- Remove Widgets in Dashboard
- How can I ‘reactivate’ .PHP files within a WP plugin that have been marked ‘inactive’?
- Give editors access to particular plugin – turn “admin.php” into “edit.php”
- Created Widget Not Showing up on Admin Panel
- Dashboard Disappears after Upgrade
- Compatibility with RTL installations
- Dashboard Widget Form
- Frontend editing, Frontend user dashboard
- Can I use a form in a dashboard widget?
- Determine Registered Admin Menus
- How to make an interface similar to multi-site for switching between multiple (single) sites for administrators?
- Plugin: Google Analytics for Dashboard error – Timestamp is too far from current time
- Merging Two menus in the backend into one menu
- How to remove admin main menu name repetition
- How to exclude certain files from the plugin editor?
- Sync User to cPanel webmail?
- Remove specific plugins and themes from the Dashboard->Updates page [duplicate]
- Login problem after installing my written plugin [closed]
- Allowed memory size exhausted problem
- How can i force wp-admin to use 2-column dashboard layout? [closed]
- Changing menu order of a specific plugin in dashboard
- I changed font of wordpress dashboard but it is slow!
- Is there a way to remove plugins in dashboard – where you cannot identify the slug by the plugins name?
- Creating a search form and displaying results
- Displaying URL Based on User Input from a Form W/in a Dashboard Widget
- Widget Screen Locked
- how to render dashboard widgets conditionaly in wordpress admin
- Stopping WordPress’ WYSIWYG Editor from Converting “didn’t” into “didn””””’t”?
- Can’t save changes or modify settings in Dashboard but Pages and Posts are fine
- How can I disable new plugin and theme install, but allow updates?
- Use localized plugin name and description even when the plugin is disabled
- How to access a wordpress plugin page or add posts without doing it from the WordPress dashboard?
- Need help with Task assigning and rewarding as currency which withdrawable
- WordPress Dashboard add user password not working, etc
- How To Remove “All, Publish, Draft and Expired” in Events Dashboard
- Why is my form going to frontend on html form submission present on the php files inside my custom plugin?
- Blank dashboard with no access
- Not able to upload Plugins/ Theme from Admin backend
- Ajax response returns html code instead of user data
- WordPress Dashboard organize posts based on categories
- Remove the ‘Press This’ Tool
- How to create plugin list groups?
- Google adsense stats plugin? [closed]
- Custom Fields on User Dashboard?
- Form with response button after on table after submission
- WordPress Plugin and other pages not opening
- Display Any Field fromAdmin Panel in Frontend via Shortcode?
- Plugin Error – Not Sure Where to Go From Here
- How can I hide Dashboard notifications for just one particular plugin?
- Convert WordPress into Event and membership managment software [closed]
- How to import WordPress site to new WordPress site?
- How can I automatically download all images from all imported posts, place them on my new host, and replace all the links
- Need to replace Currency Shortforms
- Looking for a free quiz plugin which saves the candidates answers for review [closed]
- wp_enqueue_scripts
- Why Does The `auto_update_plugin` Hook Disable Management?
- Return multiple values in a shortcode attribute
- Allowing .rfa Files In Media Upload [duplicate]
- Sanitizing file & directory form input
- What’s my optimal choice for remote access to my localhost sites?
- Some WordPress Posts are automatically becoming comments on other Posts
- List category posts displaying limited posts
- Get Every Key & Value from Array then Display All in New Line
- What are admin hooks
- disabling ftp on wordpress
- Woocommerce Coupon Menu and Marketing Menu missing After “Coupons can now be managed from Marketing > Coupons.” [closed]
- Is there a way to add custom endpoint to specific page only
- “uagb/section and uagb/columns block”
- IF condition based on wp_remote_get output
- shortcode not return any thing in Gutnburg
- Fatal error on some pages after cancelling WPSTAGING cloning process
- Always get creating a new table with foreign key
- Progmatically adding menu links to the default (Top) or Footer menu
- Add text to variable
- Where is my google maps on my page? [closed]
- standard custom page template hierarchy for plugins
- get specific value of a array | PHP
- How do I add $_SESSION[”] to my wordpress page?
- How to get specific string/value from an array? php [closed]
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- How do i show different group of images below a button when the button is clicked on the same page in wordpress? [closed]
- plugin wraps the entire content
- React error #231with Custom Blocks after upgrade to WP 5.5
- Add User Role: Pre-saved in User-Meta [SOLVED]
- There has been a critical error on your website – won’t fix no matter what
- Adding custom meta boxes to specified custom post type
- WordPress Console Application (ability to excecute a custom function via crontab only)
- Get orders of a specific customer woocommerce
- What am is missing? (API CORS)
- How to do database for download stats?
- Shortcode Attributes to Return different $_POST
- How to find out which plugin create captcha after login?
- Comment IP Plugin – Fixing onfocus=’this.select()’
- How do I make reusable content blocks for header and footer when using WordPress headless with another front-end?
- WordPress 5.4 – How to prevent to enter only certain values in custom field
- What form should the $query media query array have for an Elementor page builder function? [closed]