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 | |
use Devsrealm\TonicsRouterSystem\Container\Container; | |
use Devsrealm\TonicsRouterSystem\Events\OnRequestProcess; | |
use Devsrealm\TonicsRouterSystem\Handler\Router; | |
use Devsrealm\TonicsRouterSystem\RequestInput; | |
use Devsrealm\TonicsRouterSystem\Resolver\RouteResolver; | |
use Devsrealm\TonicsRouterSystem\Response; | |
use Devsrealm\TonicsRouterSystem\Route; | |
use Devsrealm\TonicsRouterSystem\RouteNode; |
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 | |
/** | |
* @param $string | |
* @param string $separator | |
* @return string | |
* @author DevsrealmGuy | |
*/ | |
public function slug($string, string $separator = '-'): string | |
{ | |
# |
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
{ | |
"genres": [ | |
"acoustic", | |
"afrobeat", | |
"alt-rock", | |
"alternative", | |
"ambient", | |
"anime", | |
"black-metal", | |
"bluegrass", |
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_action( 'template_redirect', 'woo_custom_redirect_after_purchase' ); | |
function woo_custom_redirect_after_purchase() { | |
global $wp; | |
if ( is_checkout() && !empty( $wp->query_vars['order-received'] ) ) { | |
wp_redirect( 'http://localhost:8888/woocommerce/custom-thank-you/' ); | |
exit; | |
} | |
} |