Skip to content

Commit

Permalink
Update hook docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdharmesh committed Apr 1, 2024
1 parent 8aaa664 commit e13824e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions includes/Classifai/Providers/AWS/AmazonPolly.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,11 @@ public function connect_to_service( array $args = array() ): array {
* This filter is useful for E2E tests.
*
* @since 3.1.0
* @hook classifai_aws_polly_pre_connect_to_service
*
* @param false|mixed $response A return value of connect to service. Default false.
* @param array $synthesize_data HTTP request arguments.
* @param {bool} $pre The value of pre connect to service. Default false. non-false value will short-circuit the describe voices request.
*
* @return {bool|mixed} The filtered value of connect to service.
*/
$pre = apply_filters( 'classifai_' . self::ID . '_pre_connect_to_service', false );

Expand Down Expand Up @@ -435,9 +437,12 @@ public function synthesize_speech( int $post_id ) {
* This filter is useful for E2E tests.
*
* @since 3.1.0
* @hook classifai_aws_polly_pre_synthesize_speech
*
* @param {bool} $pre A value of pre synthesize speech. Default false.
* @param {array} $synthesize_data HTTP request arguments.
*
* @param false|mixed $response A return value of synthesize speech. Default false.
* @param array $synthesize_data HTTP request arguments.
* @return {bool|mixed} The filtered value of pre synthesize speech.
*/
$pre = apply_filters( 'classifai_' . self::ID . '_pre_synthesize_speech', false, $synthesize_data );

Expand Down

0 comments on commit e13824e

Please sign in to comment.