For non-hierarchical post types the filter is called post_row_actions
, for hierarchical it’s page_row_actions
.
If you want to remove all actions you don’t have to unset the individual items, you can just return an empty array.
add_filter( 'page_row_actions', 'wpse16327_page_row_actions', 10, 2 );
function wpse16327_page_row_actions( $actions, $post )
{
if ( 'page' == $post->post_type ) {
return array();
}
return $actions;
}
Related Posts:
- Hard-coding custom menu elements for menu manager
- Best collection of code for your 'functions.php' file [closed]
- How do I get the current edit page ID in the admin?
- Display random categories on the front page (Finding and Editing Theme Functions)
- Is it possible to remove the “standard” post format?
- Issue with get_theme_mod returning a blank value instead of the saved value
- Add admin bar link to edit author
- Modify search function in WordPress (TwentyTwelve)
- How to customize search result page title?
- Auto delete WordPress images/thumbnails (all sizes) and featured after X days/hours, or similar?
- How to fix a theme with page.php Default Template that accidentally deleted?
- echo or print_r in an admin function
- Removing Unnecessary Text from Admin Menu without CSS
- Can I remove the Rich Text box editor for a specific post?
- Display WordPress Search
- How do I change parameters without changing the core
- Problem with extract() with custom shortcode
- How to add a rel attribute to images that contains their categories?
- add sidebar area to header of child theme
- Preferred Use of home_url()?
- Custom function for user register in wp?
- Creating loop within functions.php
- How to test for Super Admin
- Refactor create_function
- adding custom classes for tables
- Pass Shortcode Attribute to footer Script
- Customizer field value into functions.php variable
- How to select a page within admin?
- How Can I Expand the WordPress Customize window without any Plugin?
- Change Admin Bar “Visit Site” URL
- wp_dropdown_categories and custom attribute
- Automatically wrap multiple images in div
- Ajax not working properly
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- How to customly read JWPlayer’s “Playlist” items by using its “playlistid”?
- Include default functions and methods
- Twentyten Child Theme: header images display messed up in admin panel
- How to make custom column Admin>Users sortable?
- How can I modify all existing tags while keeping the urls themselves?
- Trigger a custom function when option are saved in admin area
- IF Statement on Button to make it complete and “uncomplete” based on user action / click
- Gravity Forms Button Text
- Find resources dynamically loading and change or add to the url
- When sale price is 0.00 show only regular price
- Unable to login using username
- Move Custom Fields on General Settings Page to New Location
- different style sheet for just one page template
- Condition OR for current user ID
- How to retrieve the current post’s generated featured image size?
- Custom Behavior when Adding New Custom Post Type in Dashboard
- Where do I store custom functions that call custom page template files?
- Why There Is No “get content by ID” Function
- Wp-query Order By problem
- Create custom function for hero image
- Randomizing wp_tag_cloud() in child theme
- login_headertitle is deprecated since version 5.2.0
- How to append classname to body tag if guest user
- Where do I go to edit this area? [closed]
- Replace plugin function with a custom function?
- Different favicon on different pages
- what is best way to keep track of changes made in wordpress website? [closed]
- Problem with images URL after filter applying
- Function to replace comment’s accented characters before posting
- How to echo Widget Title in Custom Frontend-Template Box
- how to display a page before the home page
- loginout function customization
- Creating a custom wordpress widget and stopping js from running twice(once in active widget once in widget selector)?
- Function to add custom HTML into head in custom post-type list page
- implementing a centralized content “show-do-not-show” toggle?
- How would I make a function to dynamically determine if user is logged to change navigation menu text?
- How to display this meta data (an array) in form of a function (created with a custom write panel)?
- WordPress – using sessions?
- Removing WPML Items From the WordPress Admin Bar
- How to replace ACTION url from original wordpress login form?
- How to display my comment count in the wordpress admin bar?
- Save_post – Warning: Cannot modify header information
- How to use WP conditional tag in a functions.php with OCEANWP Theme?
- Modifying a WordPress Plugin
- CF7 select value get to function and reciept value from function
- External api call and make global variable for any page visitor enters , page-home, page, single etc
- CSS style and app.js not loading
- Parent category as WOOCommerce Categories widget title
- Extend WordPress Audio Widget to accept HLS (.m3u8) URLs
- Woocommerce custom calculation function
- Remove all video attachment, both files and post/postmeta from database?
- WordPress function with attribute pass to template
- Will dequeueing in child theme functions.php file prevent Google Fonts from loading?
- Replace image attributes for lazyload plugin on image elements with specific class
- Help! Need a different logo on my main page from my other pages
- How to make an If Else on Excerpt Filter
- How to replace words in my posts and saved new words
- Multisite Admin Roles
- How to request login for user but not for bots
- functions.php / replacing div’s with new ones?
- function to return comma separated list of meta values
- Post variables not displaying correctly in custom function
- How to crop image in WordPress with aspect ratio for any size of image
- multible shortcodes (for differnt values) with one function
- Customizer cuistom CSS Priority ordre Issue
- Copy and Modified WooCommerce function is_coupon_valid [closed]