shriram1994
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] How to validation business email in Contact Form 7?I fount one solution from internet
// Add custom validation for CF7 form fields
function is_company_email($email){ // Check against list of common public email providers & return true if the email provided *doesn’t* match one of them
if(
preg_match(‘/@gmail.com/i’, $email) ||
preg_match(‘/@hotmail.com/i’, $email) ||
preg_match(‘/@live.com/i’, $email) ||
preg_match(‘/@msn.com/i’, $email) ||
preg_match(‘/@aol.com/i’, $email) ||
preg_match(‘/@yahoo.com/i’, $email) ||
preg_match(‘/@inbox.com/i’, $email) ||
preg_match(‘/@gmx.com/i’, $email) ||
preg_match(‘/@me.com/i’, $email)
){
return false; // It’s a publicly available email address
}else{
return true; // It’s probably a company email address
}
}function custom_email_validation_filter($result, $tag) {
$tag = new WPCF7_Shortcode( $tag );
if ( ‘company-email’ == $tag->name ) {
$the_value = isset( $_POST[‘company-email’] ) ? trim( $_POST[‘company-email’] ) : ”;
if(!is_company_email($the_value)){
$result->invalidate( $tag, “Please Enter a valid Business Email ID” );
}
}
return $result;
}add_filter( ‘wpcf7_validate_email’, ‘custom_email_validation_filter’, 10, 2 );
add_filter( ‘wpcf7_validate_email*’, ‘custom_email_validation_filter’, 10, 2 );is this correct?
Forum: Plugins
In reply to: [Contact Form 7] How to validation business email in Contact Form 7?My question is not about confirm email.
it is validation of business email(i.e) if i entered myname@gmail.com (or)myname@yahoo.com
It will throw error message “Please enter business emails”Not only gmail and yahoo it was just an example
So the valid emails are myname@somecompanyname.com
Ok Fine.
I follow this Link the solutions they mentionedYou could remove the current keyword search filter via:
remove_filter( ‘posts_clauses’, ‘get_job_listings_keyword_search’ );
is this one line enough?
Forum: Reviews
In reply to: [WPJM Related Jobs] Poor customer supportI successfully installed your plugin and it works great.
No problem with this plugin.
so take this as a suggestion or feedbackIs it possible to filter the related jobs by jobcategory instead of jobtype and companyname?
Forum: Reviews
In reply to: [WPJM Related Jobs] Poor customer supportYes I am not posting any topic Because You are not replying most of the questions was asked by users before 1 year ago.
My question was already asked by someone.
see here (https://wordpress.org/support/topic/filter-by-job-category/)He asked before 1 year and 6 month but not receiving any comments.
so that i posted poor supportYeah I saw Your Update But i already did most of the changes in your plugin
if i update i loss many codes and functionalities?
can i overcome this?
Or is there any code for “get a Notification Email to Admin when someone Submit New Job?“Forum: Plugins
In reply to: [WP Job Manager] How to create subpages and make jobs page as parent?My main Jobs Page was Showing all jobs
My CRMJobs page was showing only CRM Related JobsSO that i need Main Job page was parent of CRM Jobs..
Because i need my URL was
http:www.mydomain.com/jobs/crm-jobswe can achieve these type of url only for parent and sub-pages. So only i ask this question
Forum: Plugins
In reply to: [WP Job Manager] How to create subpages and make jobs page as parent?I put CRM Related Jobs in that page