我想在中添加“重写条件”.htcaccess 但不幸的是,我无法访问它。我可以在函数中写条件吗。php?如果是,如何实现?我想添加以下行:
RewriteCond %{QUERY_STRING} ^.{1000,}$
RewriteRule ^wp-admin/load-scripts\\.php$ - [F]
我想在中添加“重写条件”.htcaccess 但不幸的是,我无法访问它。我可以在函数中写条件吗。php?如果是,如何实现?我想添加以下行:
RewriteCond %{QUERY_STRING} ^.{1000,}$
RewriteRule ^wp-admin/load-scripts\\.php$ - [F]
使用此https://wordpress.org/plugins/wp-htaccess-editor/, 如果您不愿意使用任何插件,请理解代码并在函数中实现。php或您自己的自定义插件。干杯
希望有人能帮我。这是我的代码:function swh_woocommerce_store_credit_shortcode() { $store_credits = swh_woocommerce_get_store_credits(); echo "<span style= \'display: inline;\'>Remaining Credit:</span>"; return wc_price($stor