You can use the function wp_insert_post for this http://codex.wordpress.org/Function_Reference/wp_insert_post
$my_post = array(
'post_title' => $title,
'post_content' => $content,
'post_status' => 'draft',
'post_type' => 'page',
'post_author' => $author
);
wp_insert_post( $my_post );
then you can use wp_mail(); to notify someone. http://codex.wordpress.org/Function_Reference/wp_mail
Related Posts:
- is_plugin_active function doesn’t exist
- Get plugin directory from a theme
- How to call a plugin function from index.php
- Rewriting every url
- Where can I find a schema of wordpress plugin core architecture?
- How can I make my custom shortcode work in a Custom HTML Widget?
- How Does WordPress Uninclude/Deactivate A Plugin?
- Custom admin column disappearing when using Quick Edit [duplicate]
- Create page when plugin is activated
- How to un-attach rich text editor from named textarea elements
- How can I translate the name of my Plugin for other languages?
- how to not show plugin in admin area
- Memory Leak in plugin action
- Getting User email on logout. wp_logout
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- How can I add a custom meta value on file upload?
- How can I filter blog name?
- Logs to check when the plugin was first installed for the first time
- Can a plugin add to header/footer/body content?
- Admin-ajax.php is dying “0” without processing function
- Add a Custom Permalink option in the Permalink Admin Screen?
- How to remove an Ajax action
- How Can A Plugin Hook Itself To the End of Every Excerpt?
- Allow Facebook to preview posts before published
- publish_post plugin hook doesn’t always pass $post->post_content
- Let user subscribe to specific categories
- add action for displaying posts using a shortcode
- Best way to hook a custom url?
- How to cancel WordPress’ action/filter when using OOP with anonymous callback
- What is the best way to mimic a search query within a plugin
- Remove rewrite rules generated by plugin during deactivation
- How do I add a custom sub menu menu under Woo-commerce marketing?
- How to load plugin after page is loaded – pagespeed issues
- Programatically download a plugin
- Do action only on certain front end pages?
- Call to a member function have_posts() on a non-object on normal loop
- Archive – same title for the first two posts
- Creating plugin using simple_html_dom parser?
- Not able to add option in Sub-Menu under page
- Making a Template for a CPT created by a plugin
- Woocommerce dependent plugin
- External CSS in WordPress Plugin [closed]
- User Session and Stored Cookies not get removed
- Create a navbar filter that filters by a custom field
- get 404 when accessing wp-admin/plugin-install.php
- wp.media javascript issue with on select
- jQuery for custom plugin not working with Divi theme
- Woocommerce Minimum Price for a Composite Product to add in cart
- add tabs in rdp-plugin/includes/settings.php and get settings saved
- Creating shortcodes in plugin
- Plugin Development Form Self Submission
- Change plugin name on WordPress repo
- How To Extend A WordPress Plugin Without Losing Your Changes [duplicate]
- Does a blank plugin come with any overhead?
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- Are plugins instantiated on every request to WordPress?
- WPDB: Update table
- Why is my custom post type not being activated on plug-in activation?
- Check filter defined or not?
- adding a button to the media uploader
- How to generate an all in one WordPress New content, plugin and theme update report on a website? [closed]
- Why WP_Screeen doesn’t show all options with admin_body_class
- How do I add $_SESSION[”] to my wordpress page?
- Plugin Activation Error – The plugin generated 22 characters of unexpected output during activation
- Built a second plugin but it overwrote the first one
- Search users with custom meta data
- Calling a class method instantiated by ajax call in wordpress [closed]
- Custom Post Type template for homepage
- Paypal Framework
- GitHub plugins safe to use in my website?
- Order by post_date does not work in Previous and Next post pagination
- woocommerce: Customize email with item total count
- Fatal error “Call to undefined function is_plugin_active” each time the plugin is activated
- The styles in the recent posts widgets plugin not working
- How to get the checkout form data from checkout page when place-order button is clicked
- Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin
- How to make WooCommerce multiple filter with custom meta fields
- implement checkbox or toggle switch in plugin code
- wordpress form not saving or updating
- How to put a maximum real-time users limit
- Custom admin plugin read CSV
- How can I call functions from a custom plugin?
- How to get short description under heading – Visual Composer [closed]
- plugin installing error
- Call function when save setting/option in custom admin page
- Plugin to Delete All Posts Monthly
- mailjet plugin – extend functionnalities and reuse api
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- How can I use wp_ajax_response for front-end error reporting?
- Force download a file within plugin file
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- How can I use multi Media Uploader in a plugin?
- Is it possible to run javascript on plugin deactivated?
- Creating fields in the database
- Gutenberg: Dynamic Block – Show saved data in the editor
- How to fix ‘Call to undefined function do_settings()’ error?
- how to make wordpress remember my choice
- Meta box not displaying on the plugin page
- wordpress admin-ajax bad request 400
- public custom posts not showing in my wordpress plugin