i have created the following solution, it is working when you keep into the active theme functions.php.
Refrence
Page: includes\forms\class-wp-job-manager-form-submit-job.php
Line: 791
add_filter('submit_job_form_save_job_data', 'remove_dublicated_post_name', 10, 5);
function remove_dublicated_post_name($job_data, $post_title, $post_content, $status, $values){
if( ! strpos( $job_data['post_name'] , sanitize_title($values['company']['company_name'] ) ){
// to remove dublicate company names
$post_name_raw_arr = explode("-",$job_data['post_name']);
$post_name_unique_arr = array_unique($post_name_raw_arr );
$job_data['post_name'] = sanitize_title( implode( '-', $post_name_unique_arr ) );
}
return $job_data;
}
Related Posts:
- How to filter to output of the get_permalink() function
- WP JSON list all permalinks
- Filtering comment permalinks when a condition is met
- Remove the Parent category from the permalink but leave the child category
- How to hook into permalink when publishing-saving post?
- Multilanguage URLs
- How to change the permalink option to post name on theme activation?
- Changing post content on save, using updated fields
- is there a way to add the post URL to the results of fselect facet in Facetwp plugin?
- Process all virtual sub pages on parent page
- Permalink slug no longer editable when using post_type_link filter
- WordPress Permalink feature alternative
- Inserting a string in the middle of page’s permalink?
- Access or edit custom generated permalinks with WP_Rewrite
- Custom child page permalink
- Remove character from permalink
- Fire a code when permalinks updated
- Edit Post Permalink option removed, looking for possible causes
- I can get the permalink or the excerpt to work correctly, but not both
- Search and replace post URL’s on page output?
- Custom Permalinks and filters?
- Once redirected by Rewrite rules, how can WordPress know the page?
- How to update permalink on the fly?
- Getting the terms from “Beautiful Taxonomy Filters” Results ot Integrate into “Ajax Load More”
- Rewrite permalink with PHP processing
- Why is “/page/2/” not working?
- Why would Numeric permalinks work, but %postname% won’t?
- Passing variables through permalink structure
- Remove subfolders from URL
- Why does WP not use relative links when linking pages?
- htaccess or redirect to cloak portion of a link?
- What is the action or filter for changing permalink in Edit Post/Page?
- WordPress Permalinks %postname% for RSS2 Feed URL
- generate custom permalink based on a custom field
- How to get wordpress link to fully evaluate when coming from facebook
- Is using %postname% for permalinks really that bad for performance?
- Change author slug and functionality
- How to tranform Headlines into linkable permalinks?
- Changing search URL to something other than “search”
- How to Filter categories in the permalink structure
- Changes to .htaccess not updating the file (old rules still take effect)
- Create unique alphanumeric ID on wp_insert_post
- Permalinks not working with Vagrant
- Media Gallery Images – safe to change permalink?
- Possible to remove taxonomy from permalink if uncategorized?
- Custom permalink leads to index page
- How to eliminate permalink prefix in WordPress Multisite
- wp not making CPT permalink / slugs unique
- Permalinks 404 error with HTTPS host
- Mirror content based on URL slug
- WordPress permalink prefix
- Hierarchy of Subcategories on Permalink (bug?)
- Strange Anchor Tag Behavior (in-page links work, external pages do not) [closed]
- How to test custom rewrite rules /permalinks?
- Add a filter to get_comments_link()
- RSS feed link on archives page not working
- Order custom post type posts by custom field with pretty URL
- Show category name in the post URL only for specific categories
- post permalinks with dot in url don’t resolve to correct page template
- After cloning WP do a subdirectory, I can’t access it
- how to get permalink
- Protect Post Permalink From Copy
- Change permalink to attachment
- WordPress Page Not Found if Permalink Settings is Postname
- Main blog page works but title says Page not found
- How to translate “Permanent link to” text
- WordPress permalink change causes all incoming links to give 404 errors
- WP as a CMS menu
- Subdomains pointing to a permalink URL
- Change author permalink using htaccess?
- corrupted URLs – can’t leave starting page
- how can i change the permanent from permalinks (wordpress)
- Fatal Error when trying to load Permalinks page on WP admin [closed]
- Cannot publish posts or pages when I change permalink structure
- Add /blog prefix for all WordPress front end url
- Remove Permalink of certain posts
- Bulk update set of URLs via SQL
- rebuilding/ rewriting a url to make it SEO friendly
- Very strange behaviour related to htaccess and custom posts and custom posts substrings (BUG?)
- Permalink change during save of post
- Changed Permalinks settings, how do I redirect posts on Nginx?
- Choose permalink on a per-post basis?
- How to put articles under a /blog directory?
- Category-dependent custom permalink
- Pretty permalinks (again)
- How can I get WordPress CPT archives and page templates to work with prettified permalink settings?
- Passing user defined variable into get_permalink
- WordPress Archives Cause Looping
- Is there a way to add slug to home_url on this function?
- Customized author slugs not working with get_author_posts_url method
- region selection
- Redirecting From An Old Permalink Structure
- How to change my URL on intranet
- Include language variable in url
- WordPress Permalinks 404 Not Found
- WordPress 6.1.1 UTF8 Slug Limit Increase
- 301 Redirect posts to newly added categories
- How to have category/subcategory/posttitle/ permalinks?
- make a new structure tag that does some processing
- Website appears with wrong permalink in Google’s search