WordPress开启后台的友情链接模块
默认情况,WordPress后台已经禁用了友情链接模块,如果有需要可以手动开启:
//友情链接菜单显示 add_filter( 'pre_option_link_manager_enabled', '__return_true' );
默认情况,WordPress后台已经禁用了友情链接模块,如果有需要可以手动开启:
//友情链接菜单显示 add_filter( 'pre_option_link_manager_enabled', '__return_true' );
80后,现居于深圳【如果你也在深圳可以线下约起来】,具有多年独立站实操运营经验,带领过品牌运营团队,属于独立站实战派人士!2019年之前,我是一名疯狂的WordPress技术爱好者,精通独立站或官网的建站,熟悉 PHP、CSS 、HTML等网页编程语言,能够快速搭建网站;2019年开始,我发现纯粹的建站技术已经满足不了我的职业规划需求,于是,向数字营销领域进军了;截止目前,在谷歌ADS广告、GMC领域已经累计了近5年的实操经验;在Bing广告和Facebook广告领域也有近2年的实操经验;我的专长不仅仅局限于建站技术层面,从底层的建站技术到品牌运营策略【ADS广告、KOL红人、PR媒体公关、SEO等】都有深刻的见解!如果你在如下方面有需要协助,可以随时联系我微信:f13714022672
默认情况下,WooCommerce产品详情页的描述内容是显示在 Description 选项卡里面,下面的代码将会重命名 Description 选项卡标签文字为 Detail:function fjj_rename_description_product_tab_label() { return 'Detail'; } add_filter( 'woocommerce_product_description_tab_title', 'fjj_rename_description_product_tab_label' ); read more
默认情况,在购物车里面修改了产品数量后,必须手动点击更新购物车,对应的价格才会变更。如果能实现自动更新购物车,则能提升客户体验!直接上代码: function auto_cart_refresh_update_qty() { if (is_cart()) { ?> ... read more
WooCommerce优惠券设置可让您定义排除的产品(或产品类别)。 但是,还有另一种方法,一劳永逸:程序化设置指定的产品,这样它们将永远不会参与优惠券的折扣,也不用在设置优惠券的时候手动排除了: function fjj_exclude_product_from_product_promotions_frontend( $valid, $product, $coupon, $values ) { // 下面的12345为产品ID,可更换为你要排除的ID if ( 12345 == $product->get_id() )... read more
在实际应用中,比如Woocommerce结账页面的邮箱字段是在最后面的,我们可以将其移动到顶部: function reorder_checkout_fields( $fields ) { // 默认排序值 // 'first_name' - 10 // 'last_name' -... read more