You have the right approach. You will want to use the admin_enqueue_scripts
hook:
add_action( 'admin_enqueue_scripts', 'wpse_239302_hide_action_links' );
function wpse_239302_hide_action_links() {
global $pagenow;
if ( $pagenow == 'plugins.php' ) {
?>
<style type="text/css">
.visible .proupgrade,
.visible .docs,
.visible .forum,
.visible .jetpack-home,
.visible .support { display: none; }
</style>
<?php
}
}
Related Posts:
- How to eliminate weird 404 errors in wp-admin?
- Show an image in my header.php
- Cannot access WP admin because plugin returns 204
- Edit page header on a custom plugin
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- How do you debug plugins?
- How can I see all the actions attached to an “add_action” hook?
- I found this in a plugin. What does it do? is it dangerous?
- Disable /wp-admin/plugin-install.php
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How to export comments in WordPress?
- How do I force wp_enqueue_scripts to load at the END of ?
- How to stop showing admin notice after close button has been clicked
- Where are plugins located
- Admin menu as submenu from another plugin
- Is There a WordPress Hook to Filter the Edit Posts View?
- How do I make my plugin load before the headers are output so I can redirect wordpress?
- Why does WordPress require a ftp server to be running on the webserver to transfer plugins?
- Is there any debug toolbar that shows whick hooks are called for the current page in WordPress?
- Reordering themes in admin panel
- WordPress Admin is displaying Not Available
- Removing an admin page added by a 3rd party plugin. Gravity forms in this example
- Is there any record of installed plugins in the database?
- Add content to /wp-admin/plugin-install.php admin screens
- Best way to manage a lot of pages in Wp Admin [closed]
- $wpdb->get_results leaking memory
- Plugin: How to make links in admin page open up inside of the admin panel
- Custom admin column disappearing when using Quick Edit [duplicate]
- WordPress admin notice in plugin function
- Add code into on a per page/post basis
- Using tabs for wordpress plugin
- How do I add to the list table a filter?
- Getting Custom Post Type content from main-site of a Multisite
- Adding Visibility Options
- Plugin Development: WordPress processes twice on post update. How to skip process on the first?
- How to use WP-FirePHP extension?
- Change My Basket text in the header of WooCommerce Artificer theme
- how to not show plugin in admin area
- “Are you sure you want to do this?” when deactivating all plugins in WordPress 4.3.1 [closed]
- How to send “Location” header on plugin form submit event?
- Meteor Slides as header only for homepage and Use featured image of each page as header for respective pages
- How to make a WP admin button/menu similar to Jetpack Notifications?
- Getting “Fatal error: Call to undefined function wp_cache_get() in option.php” after updating a cache plugin [closed]
- Integrating WP as a CMS with a Bug Tracker
- How Restrict access to admin dashboard by specific static ip?
- How to see list of plugins
- Enable/Disable WP options programmatically
- Strip HTML comments from plugins in header/footer
- Questions about brute force attacks on the admin username, coming from amazon IP addresses
- Can wp_script_is used in pluginA check if a script is being enqueued/registered from pluginB?
- Why would WP-CLI and WP Admin show different list of plugins with updates?
- Edits to plugin not taking effect
- How could I execute my plugin just in frontend (not in backend)
- send_headers don’t work on wordpress multisite
- Plugin could not be activated because it triggered a fatal error. (No Error??)
- Can’t see login page after migration
- Custom height/width for thickbox in WP Backend
- Hide Theme options and Customize Admin menu
- Making menu link open in new tab?
- After activating a Plugin, /wp-admin is no longer accessible
- Weird problems after recovery from security breach
- How can I create a plugin installation link?
- How to implement Sentry on WordPress? [closed]
- Cannot access wp-admin after disabling all plugin
- Function to prevent users from trashing comments
- How to Sort the Favorite Plugins Screen Alphabetically?
- adding meta data using plugin to top of head
- Why do plugins that cause ‘unexpected output’ create AJAX problems?
- Hide extra menus from WordPress Dashboard
- How to provide a plugin which requires CMB2 (plugin dependencies)?
- ‘wp_login’ action hook not working with wp-login.php file
- 404 Error on Activate / Deactivate Plugin
- Why isn’t admin_notices displaying my text? [Simple Plugin, Beginner]
- Plugin upload to install
- WordPress Redirect Not Working – AJAX Callback Response Not Picked Up
- WordPress takes too much time (100 seconds) to load – Front end and back end
- WordPress on AWS with ELB
- Change the backend language of a single plugin
- Headers already sent when I try to add headers via a shortcode
- Edit default comments page in WP Admin
- how to find and correct plugin query performance issues
- All Users > User List > Update User Meta Field Inline
- WordPress repository forbids me call wp-load.php in non-WordPress file
- Rotating background images with admin options
- Is there an easy way to flag posts in the admin area?
- How to hide some section in WordPress under Post
- Headers Content-Security-Policy CSP Major Issue
- Default WordPress WP Editor removing style tags and html tag
- How to debug error message: Cannot modify header information
- Problem In Advance search Plugin [closed]
- Facebook Messager Plugin
- Polylang : Interverting languages after development [closed]
- Is it possible make a back-end for WordPress with WordPress?
- Create tabs in admin options page from custom post type loop
- Dynamic admin submenu
- Remove ‘Check Compatibility’ from Plugins menu
- Unable to get WP_DEBUG, WP_DEBUG_DISPLAY, WP_DEBUG_LOG to work
- Object method calling for global $wpdb in header.php
- Add menu page issues (permissions & position)
- What does making sure “that your theme is WordPress header and footer tag enabled” mean?