[PHP] Nhận URL trang hiện tại

[php] $actual_link = (isset($_SERVER[‘HTTPS’]) && $_SERVER[‘HTTPS’] === ‘on’ ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; [/php]

Published
Categorized as Link

[wp] Link

Get site URL [php] <?php echo get_site_url(); ?> [/php] Get Plugin Url Image [php] <img src="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . ‘pluginfoder/images/facebook.png’; ?>"> [/php]