Go back to my home page

You can use woocommerce_thankyou action to achieve above add_action( ‘woocommerce_thankyou’, ‘custom_goBack’); function custom_goBack( $order_id ) { echo ‘<a href=”‘.get_home_url().'”>Go Back</a>’; }

How to show Specific URL of WordPress on Any one Specific IP only?

A simple way of doing this would be to use template_redirect and return a 404 status code if the clients ip address does not match the desired one: add_action(‘template_redirect’, function () { /** @var \WP_Query $wp_query */ global $wp_query; if ($wp_query->get_queried_object()->post_name === ‘hello-world’) { $address = $_SERVER[‘HTTP_X_FORWARDED_FOR’] ?? $_SERVER[‘REMOTE_ADDR’]; if ($address !== ‘172.20.0.1’) { // … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)