BrilliantPlugins / wp-geometa

Spatially enable WordPress
GNU General Public License v2.0
19 stars 10 forks source link

Make dashboard only show counts for posts users can see #13

Open stuporglue opened 7 years ago

stuporglue commented 7 years ago

Instead of using

add_management_page( 'WP-GeoMeta', 'WP-GeoMeta', 'install_plugins', 'wp-geometa', array( $this, 'show_dashboard' ) );

Always add the page to the Tools menu, and then use capabilities to filter which spatial records and counts users can see.