I am not entirely sure what you are trying to do. But you are definitely a little off with add_action()
. Should be something like this:
function myFunctionThatSendsMyWebsite($post_ID, $post) {
// $post_ID and $post will have post's ID and full post object
}
add_action('save_post', 'myFunctionThatSendsMyWebsite', 10, 2);
Related Posts:
- Publish Post After Click On A Link
- How to call a plugin function from index.php
- How can I make it so the Add New Post page has Visibility set to Private by default?
- Rewriting every url
- Show Similar Post Titles ( Similar to Stack Exchange )
- How to add option box in “Edit Post” plugin API?
- How do I unlock a post programmatically?
- Disallow a user to post in certain categories
- How To Ignore a Filter On Applying Filter the Content In a Function
- How to get posts by content?
- Passing URL parameters to WordPress pages and pretty url
- How to get the custom page get_permalink?
- WP get_permalink Return Wrong URL
- Custom url structure for custom template
- Action on post publish
- Add a Custom Permalink option in the Permalink Admin Screen?
- How to get the permalink of a page when loading my plugin
- Placement of Code in Plugin for hooking `save_post`
- How use %like% in sql statement wordpress
- Adding Attachment Display Settings in custom media frame
- Execute a plugin only on post pages
- How do I add a custom sub menu menu under Woo-commerce marketing?
- How to change custom post type pemalink Hierarcy
- How to save post change url youtube link?
- finding whether request is for post, and post id
- Display post lists in 2nd paragraph
- Outbound link autometic converted into linkdirect , and not opening
- Modifying Author Link to add Author Meta in URL
- How to inform the user that the save was not successful?
- Perform internal redirect in WordPress?
- Redirect to another page using contact form 7? [closed]
- How to get the permanent link in a plugin?
- How to get all posts belongs to a user between a certain date
- flush_rewrite_rules() not working with update_option_{$option}
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- Set Multiple Meta Values as an Array Using dispatch( ‘core/editor’ ).editPost() Call in Gutenberg/JS
- Post status doesn’t update to ‘future’ every time?
- Delete data from custom table when deleting a post
- How to embed a new string in url?
- Plugin is creating posts twice
- Make get_permalink() work outside the Loop using filters
- Plugin for TinyMCE to create reference to other posts
- How to get Recent Post From Each Category with Thumbnail?
- Why the internal link get converted into a comment?
- Is it possible to pin a post in second position from top
- Oops! That page can’t be found
- Help to Create a Simple Plugin to make a post
- How to display the custom post related blog by category?
- WP Forms not displaying,becomming an fatal error
- WordPress Frontend Page using Plugin
- Child theme modifications not showing up
- Create new page in wordpress plugin which doesn’t exist
- Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin
- How can I see $post object in frontend from functions.php?
- Allow members to create groups on my site
- add tags to wordpress post using REST API
- Prefix WordPress Taxonomy Tags With Hashtag Symbol Like Twitter
- Changing author slug for a custom role without using plugin
- WordPress Product Detail and catalog
- Custom author page for custom role
- Custom role not listed
- Is it possible to create duplicate post on other site (either push, on publish, or pull, periodically)?
- Is it possible to change plugin’s Admin Panel Url?
- How can I get the Post ID and Post Type within a Must Use Plugin?
- Get content and send to 3rd party
- Coming soon pages with rest of site in maintenance mode
- Displaying friend’s posts only
- Get page type to display content
- Capturing POST data
- Custom feed parameters / Template overriding
- Plugin to display text before a post
- Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]
- warning wp session
- claim a permalink and all sublinks in plugin
- Getting 400 Error in wordpress website
- Help Needed: Issue with Change Permalink on DirectoryPress Listing Pages
- Submit Form data to another page via Ajax (WordPress Way)
- Render content of multiple pages and their descendants
- WordPress Multisite: Programmatically Activate / Deactivate a Plugin of a Specific Blog
- Can I use register_settings and unregister_setting once the settings page has loaded?
- Can I use Symfony components in a plugin that I want to submit to the WordPress plugin repository?
- Why am I unable to load scripts in head in plugin?
- How to make multiple admin pages for one plugin?
- Bulk update wordpress posts
- Create custom pages with a plugin
- WordPress checkbox and Illegal string offset
- Custom license for WordPress plugin
- Is it possible for a plugin to force reading and writing of uploaded images to a database instead of to a filesystem?
- Is it fair to use MIT licensed code in WordPress plugins? [closed]
- Does using `add_action( ‘init’…` cause performance issues?
- How to add an element right after the article using jQuery?
- How to reset wordpress but not plugins and settings
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- How to automatically add edit link on frontpage post of any wordpress theme?
- How to write “alt” tag in image for wordpress code?
- Include a php file from another plugin
- How do I make a secure API call from a shortcode when a button is clicked?
- Issues with a WP plugin menu system
- Check filter defined or not?
- WordPress REST API Plugin Development – Add Custom Endpoint