PublishComment::prepare_data( array $data )

Description #

Prepare data for the asynchronous request

Parameters #

  • $data
    array (Required) Arguments.

Changelog #

VersionDescription
4.1.8Introduced.

Source #

File: includes/class-async-tasks.php

	protected function prepare_data( $data ) {
		return array( 'comment_id' => $data[0]->comment_ID );
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment