Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

wrong args on add_action for npr_delete function #17

Open
benlk opened this issue May 13, 2016 · 0 comments
Open

wrong args on add_action for npr_delete function #17

benlk opened this issue May 13, 2016 · 0 comments

Comments

@benlk
Copy link
Contributor

benlk commented May 13, 2016

in push_story.php:

add_action( 'trash_post', 'npr_delete', 10, 2 );

But the function npr_delete only accepts one argument https://github.com/npr/WP-DS-NPR-API/blob/master/push_story.php#L62 :

/**
 *
 * Inform the NPR API that a post needs to be deleted.
 * @param unknown_type $post_ID
 */
function npr_delete ( $post_ID ) {
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant