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
- Making my plugin multi-site compatible
- Checking if an attribute exists in a shortcode
- How to create a WordPress plugin for another wordpress plugin?
- Is it possible to upload a template file to a directory that can be used by all themes?
- WordPress hook for visiting a post
- Creating a modal dialog without jQuery
- __callStatic method handler passed to add_action causes bug in PHP
- New databes tables with – WooCommerce – for developers [closed]
- Remove /product/ from url. I want only category name then product name
- plugin dev – minimum base css specificity?
- Creating an admin meta box to save post as pending
- Remove all messages, when untrash a post
- How to resolve warning for `unstableOnSplit` prop on a DOM element in block editor
- Rename a folder via HTML POST request
- path of wp-content directory when we are on some plugin
- How to make a page both “private” and “password protected”
- Add Custom Field to Post Pages via Plugin
- Timing issue with is_amp_endpoint()
- Can I add content before post content without using the_content filter
- what is the best way to create a premium plugin while also protecting your code
- hide load more button if there are no posts left to display
- Plugin Breaking WordPress Login
- Checking url from plugin [duplicate]
- Most visited posts
- How to create a custom wordpress plugin for a specific functionality?