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

Block registration by URL referrer?

You can use “register_post” hook that happens just before the user is saved to the database or you can use “register_form” hook and check the referring URL for a match and die();

How to set path to the image instead of alt in media.php?

This should do the trick add_filter(‘wp_get_attachment_image_attributes’, ‘change_alt_image’, 10, 2); function change_alt_image($attr, $attachment) { $data_img = wp_get_attachment_image_src($attachment->ID, ‘original’, false); $attr[‘alt’] = esc_url($data_img[0]); return $attr; }

Need help changing back the correct wordpress url

Did you follow the steps outlined here: http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory Specifically did you copy the .htaccess and index.php files back to the root and edit the index.php file with correct filepaths as stated in points 7 – 9? Update The problem was solved by modifying these two options in the wp_options table: siteurl home (See comments)

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