You can write your own hook for edit_post_link
filter:
add_filter( 'edit_post_link', 'wpse8170_edit_post_link' );
function wpse8170_edit_post_link( $link ) {
$matches = array();
if ( !preg_match( '/\>.*?\<\/a\>/i', $link, $matches ) ) {
return $link;
}
return str_replace( $matches[0], '>MY NEW EDIT LINK TEXT HERE</a>', $link );
}
Related Posts:
- Change admin bar to default:off
- Get password when user registers and save it sha1 into database
- Should I use add_filter for functions in function.php of the theme?
- Pass variable to hook. Its possible?
- Replace single_template filter with what for default posts?
- apply_filters to featured image
- Get the blog page URL set in Options
- Issues with title-tag and document_title_parts
- Using classes instead of global functions in functions.php
- What is the difference between wp_register_sidebar_widget and register_widget?
- How to remove the Theme Customization Button from the dashboard and themes options page?
- What filters are applied to the_content function?
- How to modify an image block in Gutenberg WordPress 5?
- Create “File-less” Page Template in Functions.php
- Edit srcset and sizes attributes in Gutenberg image, cover and gallery – blocks
- wp_get_attachment_image_attributes not working for me
- When to use esc_url, esc_html, esc_attr, and friends?
- Display a different theme for not logged-in users
- How to edit bbPress template files – WordPress + BuddyPress + bbPress? [closed]
- Run shortcode before filters
- Add class to before_widget for all widgets with a dropdown and a counter
- How to Auto Approve Comments on a Specific Page?
- Override default cropping in WordPress [duplicate]
- How do I “unhook” / de-register jQuery so that it’s not called as part of wp_footer();?
- Removing the default sidebar from admin panel
- Returning Variables back into a template
- Allow users to add custom functions to wordpress theme
- Change date number to another language/script?
- How to add custom template tag in wordpress theme?
- Nesting Functions within Functions
- Is using eval() ok in this scenario
- Custom php page in WordPress theme?
- WordPress nav_menu_css_class theme filter is not being called
- customizing the_password_form filter
- Can’t access WordPress functions in file called via Ajax?
- How can I customize wp_footer, where is the code that controls what this function does?
- WordPress Genesis Child Theme Filter divs
- How to list all images in uploads directory except those that are attached to any post
- More than one meta field in a single meta box?
- Is there a theme function for is_password_protected()?
- Show excerpt for only first post in query
- how do you create an admin interface in plugin for your theme
- How to determine which custom header image is being shown
- How to store functions in… functions.php?
- Unhook jQuery from WooCommerce via `functions.php`? [closed]
- trying to use wp_handle_upload with ajax
- Simple way to get two language WP site
- Should I use include or load_template for including shortcodes, plugins and so on?
- Check if home.php and set home.php as page_on_front
- Highlight “Show all” item in wp_list_categories
- When trying to override plugin’s function by theme, my filter executes two times, I want it to run only a single time
- Menu item added in wp_nav_menu_items filter is never highlighted
- after renaming my wp-content folder, how do I upgrade my wordpress version?
- How do I add custom bulk actions to multiple custom post types?
- Theme Customizer not loading JS for live preview
- Remove “You are using WordPress 3.2.1” from Right Now Dashboard Widget
- Replace function in a child theme
- Redirect to another page using contact form 7? [closed]
- Custom theme, contact form 7 & fast secure form doesn’t work
- Change the “Default Avatar” admin option via functions.php
- How to rotate every letter in a title
- How to disable thumbnail filter for a specific template part or image size?
- JQuery undefined and Stylesheet loads in bottom along with js files
- CSS class on last post in loop ( custom query )
- How to call the_time current?
- Use a filter on menu items that have children
- Modify available templates (in dropdown)
- tiny_mce_before_init: ‘exact’ => true has no effect
- How to add aria role and schema markup to custom walker container
- How to conditionally add a wp_filter
- Add content after get_header
- Filter didn’t work on content class (hybrid_post_attributes)
- Can’t change theme name
- How to make excerpt image be full size instead of thumbnail?
- content filter (add_filter) for category description?
- Related Post Category Filter
- Pagination don’t work with active filters
- How to register dynamic settings in WordPress Customizer?
- restrain filter on get_the_excerpt to queried item in stead of current post
- Unpublished Pages Failing To Appear On Custom Path
- Override category archive page title (not the head title)
- WordPress wp_get_current_user returning blank values until refresh
- Alt header logo and link for specific pages
- Remove External Links from WordPress posts Using add_filter() in Theme functions.php
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- Make a custom field in admin post.php read only
- Hook in parent theme Menu function
- How do I remove p tag *insertions*? Disabling `wpautop` removes manual tags
- How to add custom nav_menu_css_class to certain menu only?
- WordPress permalink setting
- what is do_action(); in wordpress? [duplicate]
- Allow tags and attributes in post and pages content
- Suppress the_content filter in a nested loop
- enqueue script if page is not equal to
- loading custom.js file after jquery is loaded
- Add rel to all images in a post
- Creating custom function in wordpress to return data from database
- Adding a new layout for genesis
- themeforce (happytables framework) implementation
- Is there any filter or action hook to remove layout classes from appearing in my templates?