You will want to use sanitize_email();
as follows:
return( sanitize_email( $email ) );
Here is the Codex link so you have it: http://codex.wordpress.org/Function_Reference/sanitize_email
Cheers!
Related Posts:
- Adding the_content() in custom template email
- why doesn’t the_content() work in this {single-custom_post_type.php} page?
- Get random custom-post-type post to display within content
- Getting a div content of a post in wordpress?
- Custom post type without editor or revisions – Notify on update?
- How to auto send email when publishing a custom post type?
- Remove tinyMCE from admin and replace with textarea
- Wp-query causing problems with the_content();
- How do I set the content for a post of a particular CPT?
- Post Via Email to a Custom Post Type
- Rendering Custom Post Types independently of the theme in use
- Add $more_link_text parameter to the_excerpt()
- Exclude the_content (); from page password protection
- Sending an email when a CPT is saved/updated (NOT when it’s created)
- Email friend for each Custom Post Type posts on a page
- Send email button in custom post type backend
- the_content() not outputting anything (Advanced Custom Fields)
- Notify admin on new submit
- get_post_meta returning no value in custom post type alert email
- Content vs Template on custom post
- the_content filter on some post types only not working
- How can the recipients and content for comment email notifications on a custom post type be changed?
- Is it better to use filter for the_content in archive pages?
- What functions does WordPress use for filtering / sanitizing comments?
- data-type=”” … needed post tags stripped of characters
- the_content(); of custom post type treated as an array or object
- Dynamic bootstrap tabs with post_title doesn’t display the_content
- How can I remove filters from custom post types?
- How to insert data into meta box from another plugin?
- Add shortcode inside of the_content()
- Generate new post from email
- Separate Content from gallery (custom post type)
- Send email messages after comment was submitted
- Send post changes to set email addresses (not users or subscribers)
- Sanitaizing Select Optin For Custom Post Type Metabox in WP
- filter the_content, custom post type, and wp_query
- Extending post by email
- Add Content Column to Custom Post Type backend
- See if the email exists or not
- Creating post template for a Custom Post Type
- CPT email notification including only new value custom fields
- Auto generate excerpt from ACF field on a CPT that does not support excerpt or content
- Send email to author of the post when the custom post status changes to published
- Send mail to author when custom post type is saved
- Filter Content on all Post Types
- Expandable WordPress content (text) inside a post
- BCC email to subscribers
- send email to all registered users when post expires
- CPT Metabox with email notification
- Add HTML before a specific div?
- Emailing Authors only when a CUSTOM POST TYPE post is published- not when edited later [duplicate]
- How to create a job post by email parsing? [closed]
- Send email on creation of custom post type and use get_post_meta()
- Custom post type role permissions won’t let me read
- How to remove Filters from post admin page?
- Custom Post Types on Category Pages
- How can you make permalink work for custom post type and taxonomy?
- Count custom post types with a specific meta value
- Post Rank on Single Post page based on custom field
- Inserting data into `post meta` table?
- Control Custom Post Type template from a plugin
- WordPress User Roles, Custom Post Types, and Admin views
- WP_Query that filters based on custom relationship field
- Trying to add script to specific admin page is not working
- Permalink Structure CPT With Custom Taxonomy Fails
- Use post as category
- How do I create filters for custom post types?
- Enqueueing scripts and styles multiple CPTS
- Randomize Posts. Skip the first post in ascending order
- Display custom post type category, while in a CPT category, then the posts beneath
- Additional section in custom post type permalink
- Disable closing on metaboxes
- Static page determines as home, but it is not
- Use the same date-based permalink structure for all post types
- categories should be available across all custom post types
- Automatically create child custom post when creating a custom post
- Display custom posts randomly in custom taxonomy archive
- Show Posts to Author Only
- WP_Query parameter conflict
- Create a comments template for custom post types
- CPT with its own category and tag url
- Display custom posts for each category from its custom taxonomy
- Archive Template being used instead of Category Template for Custom Post Type
- Custom Post Type not working with Capabilities
- How to automatically create a terms based on each post of a post type
- Using `set_transient()` when saving a custom post type
- Add html tot CPT edit screen – no metabox
- Show all post type posts in manage users posts column
- How to submit the date with ajax?
- Modify category permalink to use post type slug
- How to get post type archive category title
- How can i order my posts by post type?
- How to display post thumbnails from custom post type category on homepage?
- Different post types arranged on one page
- the title not working from a custom post type
- Roots: Custom Post Type 404 Not Found [duplicate]
- Add Metabox to all custom post types
- Nested loop called with shortcode duplicating the content above the main loop
- How to Create a Frontend Html-list Editable in the Backend?
- Change post structure