Can I use wp_widget_rss_output to show my site’s feed in the dashboard?
Can I use wp_widget_rss_output to show my site’s feed in the dashboard?
Can I use wp_widget_rss_output to show my site’s feed in the dashboard?
The recent comments list is part of the Activity Dashboard Widget. Approach #1 We could remove that dashboard widget and then add our modified version of it: /** * Remove the latest comments from the Activity dashboard widget (approach #1) */ add_action( ‘wp_dashboard_setup’, function() { // Remove the Activity widget remove_meta_box( ‘dashboard_activity’, ‘dashboard’, ‘normal’ ); … Read more
Use the function current_user_can( $capability ). Where $capabilty applies. For example: If ( current_user_can( ‘update_plugins’ ){ //do some update plugin stuff }
Do you talk about WordPress.com or independent installation of WordPress.org on your server? These are two different things and your question confused because you mentioned that you have your own hosting also. For WordPress.com, contact their support. They should help you with this if you configured your domain there. If you installed WordPress.org independently on … Read more
Getting 404s in wp-admin after logged in
wp.media – media uploader – how to destroy instance of modal?
The WordPress admin area uses capabilities to determine which user role can see what pages etc. You can use custom written code or several plugins to control to capabilities by each user. I’d suggest using the Members plugin for some easy control.
I have found a solution, using $query->get(‘cat’): when restricted users select “all categories” $query->get(‘cat’) will return ‘0’, so in this case I will apply filtering, otherwise my code won’t run, allowing user-selected filter (in a restricted range) to be applied /********** post & media lists filtered by user role & category **************** function posts_for_current_role($query) { … Read more
How to test if in dashboard, bypassing Ajax quirk
Any ajax call to WP will likely call admin-ajax.php as that’s the way you’re meant to make ajax calls in WP. So your last condition will be true for many front end ajax calls and then you’re setting author -1 for all of those queries and excluding everything that User #1, generally the default Admin … Read more