mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-05 02:15:45 +03:00
Send contributors the confirmation email when created by the ajax endpoint
This will only send the email for published pledges.
This commit is contained in:
parent
f7a253027c
commit
d0dc2f0a14
2 changed files with 10 additions and 2 deletions
|
@ -135,7 +135,7 @@ function populate_list_table_columns( $column, $post_id ) {
|
|||
* @param int $pledge_id The post ID of the pledge.
|
||||
* @param array $contributors Array of contributor wporg usernames.
|
||||
*
|
||||
* @return void
|
||||
* @return array List of the new contributor post IDs, mapped from username => ID.
|
||||
*/
|
||||
function add_pledge_contributors( $pledge_id, $contributors ) {
|
||||
$results = array();
|
||||
|
@ -162,6 +162,8 @@ function add_pledge_contributors( $pledge_id, $contributors ) {
|
|||
* or an error code on failure.
|
||||
*/
|
||||
do_action( FiveForTheFuture\PREFIX . '_add_pledge_contributors', $pledge_id, $contributors, $results );
|
||||
|
||||
return $results;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue