This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wprobo_12345_handle_twilio_success( $response, $args ) { | |
// Perform any action when the Twilio API returns a success response. | |
} | |
add_action( 'wprobo_ccp_twilio_handle_twilio_success', 'wprobo_12345_handle_twilio_success', 10, 2 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wprobo_12345_handle_twilio_exception( $exception, $args ) { | |
// Perform any action when the Twilio API throws an exception. | |
} | |
add_action( 'wprobo_ccp_twilio_handle_twilio_exception', 'wprobo_12345_handle_twilio_exception', 10, 2 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wprobo_12345_before_verify_otp( $phone_number, $otp ) { | |
// Perform any action before verifying the OTP. | |
} | |
add_action( 'wprobo_ccp_twilio_before_verify_otp', 'wprobo_12345_before_verify_otp', 10, 2 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wprobo_12345_before_send_custom_otp( $phone_number, $otp, $company, $channel ) { | |
// Perform any action before sending the custom OTP to the customer. | |
} | |
add_action( 'wprobo_ccp_twilio_before_send_custom_otp', 'wprobo_12345_before_send_custom_otp', 10, 4 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wprobo_12345_before_send_message( $phone_number, $message ) { | |
// Perform any action before sending the message to the customer. | |
} | |
add_action( 'wprobo_ccp_twilio_before_send_message', 'wprobo_12345_before_send_message', 10, 2 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wprobo_12345_before_carrier_lookup( $phone_number ) { | |
// Perform any action before performing the carrier lookup. | |
} | |
add_action( 'wprobo_ccp_twilio_before_carrier_lookup', 'wprobo_12345_before_carrier_lookup' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wprobo_12345_before_send_otp( $phone_number, $channel ) { | |
// Perform any action before sending the OTP to the customer. | |
} | |
add_action( 'wprobo_ccp_twilio_before_send_otp', 'wprobo_12345_before_send_otp', 10, 2 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'wprobo_ccp_functions_add_log_path', 'my_custom_log_path' ); | |
function my_custom_log_path( $log_path ) { | |
$log_path = '/my/custom/path'; | |
return $log_path; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$result = match ($value) { | |
1, 2, 3 => 'Low', | |
4, 5, 6 => 'Medium', | |
7, 8, 9 => 'High', | |
default => 'Unknown', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[Deprecated('Use newFunction() instead')] | |
function oldFunction() { | |
// ... | |
} |
NewerOlder