YoastWPSEOai_api_url

YoastWPSEOai_api_url

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-seo.25.9

apply_filters('YoastWPSEOai_api_url') is found 1 times:

  • /src/ai-http-request/infrastructure/api-client.php line 56
    		 * @internal
    		 *
    		 * @param string $url The default URL for the AI API.
    		 */
    		$url      = \apply_filters( 'Yoast\WP\SEO\ai_api_url', $this->base_url );
    		$response = ( $is_post ) ? \wp_remote_post( $url . $action_path, $arguments ) : \wp_remote_get( $url . $action_path, $arguments );
    
    		if ( \is_wp_error( $response ) ) {
    			// phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped -- false positive.
    			throw new WP_Request_Exception( $response->get_error_message() );
    		}