You can’t change dashes using any filter because there is no filter available to change it.
but still you can change this using jQuery put this code inside functions.php
add_action('admin_head',function(){
global $pagenow;
// check current page.
if( $pagenow == 'edit.php' ){ ?>
<script>
jQuery(function($){
var post_title = $('.wp-list-table').find('a.row-title');
$.each(post_title,function(index,em){
var text = $(em).html();
// Replace all dashes to *
$(em).html(text.replace(/—/g ,'*'));
});
});
</script>
<?php
}
});
Related Posts:
- How to add jQuery script to an individual page?
- Remove Page Title from Static Frontpage
- Increment Page Order As Pages Are Created
- Is there a way to remove or hide individual pages on the Edit Pages screen?
- Removing labels and tag on WordPress’s default login form
- Using JavaScript and JQuery in Page
- Call the content of a page in AJAX in WordPress
- Create subpage – filter parent pages list
- Can I include Javascript/jQuery in a page?
- Can’t get done anything with admin.php response
- Any Ideas for Including “More Tag” with get_pages($args)?
- WordPress custom taxonomy check box to dropdown
- Add Lightbox To WordPress Native Gallery
- Adding a Calculator to a WordPress Page
- How can I check user capability when a page loads (via functions.php)?
- JQuery Plugins in WordPress
- Can I change the “Home” text in the menu?
- sortable columns for multiple custom post types not working
- Can I “protect” a page with a form asking for an email address?
- How to disable delete option for a specific page? [closed]
- Rewrite to load homepage for a different url
- create 2 custom columns in page edit in Admin panel
- Loading scripts on specific pages using PHP in footer.php
- Add Filter to Ignore a Post/Page or a Number of Post/Pages
- Randomize post (and page) IDs on generation
- Add Index to Item in WordPress Gallery
- When would it be best to hook AJAX functions on a back-end page?
- Adding user filter – Not updating data in URL
- My AJAX requests take 30 seconds to complete
- Display child pages on homepage template
- Custom Filter using meta_value in wordpress admin list not working
- static page with buton that opens collect email form
- page wordpress add extra unwanted stuff
- Javascript will not run properly
- Adding a filter to wp_edit_posts_query() to prevent hierarchical display of pages
- Ask for template when adding a new page
- Adding a Admin Style Table in a WordPress 4.x Page
- Add infinite scroll to content splitted post
- Passing a parameter to filter and action functions
- Difference Between Filter and Action Hooks?
- Check if wp-login is current page
- How to get current page ID outside the loop?
- How to know what functions are hooked to an action/filter?
- Get a list of all registered actions
- WordPress hooks/filters insert before content or after title
- Contact Form on WordPress Sites?
- Page returns 404 with POST variables, but not without
- Custom templates not showing up in template dropdown
- Hook for post and page load
- How can I edit post data before it is saved?
- Get page id by template
- How do filters and hooks really work in PHP
- Trouble understanding apply_filters()
- Using pre_get_posts on true pages and static front pages
- Get the content of a specific page (by ID)
- How to get page title with the page ID?
- Show more than 20 items in pages or posts edit dashboard
- Allowing user to edit only certain pages
- Pass PHP variable to javascript
- How to display last 3 posts (recent posts) in a static page?
- Issues with title-tag and document_title_parts
- How to give paged links custom title?
- How to set post slug when using wp_insert_post();?
- How can I keep the content of my pages version controlled?
- How to load javascript on custom page template?
- How to configure WordPress to handle 75,000 pages?
- How to update page status from publish to draft and draft to publish
- Check if is on child-page of a particular page
- Change page template programmatically ?
- Conditional tag to check if ‘page.php’ is being used?
- Customizing the URLs of WordPress Login and Sign-up Pages?
- Is there any action filter/hook for validating a custom field before publishing the post?
- Apply the_title() filter in post & page title, but not in menu title
- How to disable posts and use pages only
- featured image as background image on pages
- Check IF is a “single product page” and Check the “role” for a Redirect
- A check for if is parent page, if has children, if has grandchildren
- How many filter/action hooks are healthy?
- How to load JS and CSS only on specific Pages using is_page()?
- Listing pages which uses specific template [duplicate]
- Filter specific shortcode output?
- Proper way to get page content
- Access the same page from multiple urls (wildcard)
- Create a page without adding a page in the Database
- Earliest hook to reliably get $post/$posts
- Is there a way to change the default page template selection?
- Can I have two child pages of different parents with the same name?
- What methods to use to create small, editable pieces of text for static pages?
- How to pass/get data to/from the WooCommerce data-product_variations object?
- Show Default Editor on Blog Page ( Administration Panel )
- Hide page visual editor if certain template is selected?
- Where to hook into post content?
- What is the difference between $paged and $page?
- What does (10, 2) mean when used with add_filter
- How to remove the Theme Customization Button from the dashboard and themes options page?
- Define custom Page Template without its own .php file
- Clarification on filters and hooks
- multi page password protection
- Create a “Dummy” parent page for a hierarchy in page listing?
- How to only hook on Single.php after content?