我通过实现以下代码实现了产品旁边的商店名称 /*
Show Store name on the product thumbnail For Dokan Multivendor plugin
*/
add_action( 'woocommerce_after_shop_loop_item_title','sold_by' );
function sold_by(){
?>
</a>
<?php
global $product;
我有一个页面,它使用以下代码从URL中获取一个GET变量q:
<?php ob_start(); session_start();
$q=trim($_GET['q']); // this is for security purposes
if (!is_numeric($q)){
header("HTTP/1.0 404 Not Found");
}
?>
当前URL看起来像localhost/s/index.php?q=345。我将很快编写一个.htaccess文件,使URL看起来像localhost/345。我想知道我是否仍然可以使用上面的代