WooCommerce:重命名产品详情页 “Description” 的副标题
产品详情页的 “Description” 的副标题,如下图所示:
function fjj_rename_description_tab_heading() { return 'Product Features'; } add_filter( 'woocommerce_product_description_heading', 'fjj_rename_description_tab_heading' );
产品详情页的 “Description” 的副标题,如下图所示:
function fjj_rename_description_tab_heading() { return 'Product Features'; } add_filter( 'woocommerce_product_description_heading', 'fjj_rename_description_tab_heading' );
80后,现居于深圳【如果你也在深圳可以线下约起来】,具有多年独立站实操运营经验,带领过品牌运营团队,属于独立站实战派人士!2019年之前,我是一名疯狂的WordPress技术爱好者,精通独立站或官网的建站,熟悉 PHP、CSS 、HTML等网页编程语言,能够快速搭建网站;2019年开始,我发现纯粹的建站技术已经满足不了我的职业规划需求,于是,向数字营销领域进军了;截止目前,在谷歌ADS广告、GMC领域已经累计了近5年的实操经验;在Bing广告和Facebook广告领域也有近2年的实操经验;我的专长不仅仅局限于建站技术层面,从底层的建站技术到品牌运营策略【ADS广告、KOL红人、PR媒体公关、SEO等】都有深刻的见解!如果你在如下方面有需要协助,可以随时联系我微信:f13714022672
“数据库”一词已被广泛使用,并为数以百万计的人所熟知,数据库是当今众多数字服务的核心,很容易将其完全忽略,但是无论您是经营购物网站还是商业服务器,无论您是否直接负责管理,对它们的理解都是必需的。你必须充分掌握数据库是什么以及数据库是如何工作的,尤其是如果您运行WooCommerce网站并且要充分利用该平台,下面是数据库基础知识快速入门的概述。数据库–基础 本质上,数据库是一种系统,其中信息以有序方式存储,从而允许管理系统根据需要添加,检索和修改详细信息。通过将数据放入表中,行和列可以使信息以逻辑方式进行组织,从而使用户也易于理解,也可以与软件进行交互,从而实现了顺序和效率。结构化查询语言(SQL)是迄今为止在数据库上下文中最常见的语言。WooCommerce数据库结构 首先,值得指出的是,WooCommerce存储客户数据的方式不是集中的。而是可以在针对平台本身定制的表之间或基于与所有WordPress网站相同的解决方案的表之间分配此信息。除非您自己进行了更改,否则WooCommerce会自动将客户数据与他们在商店中下的订单相关联。无论他们是否已创建帐户或决定以访客身份签出,这都适用。从原则上讲,这一切听起来不错,但是实际上,这意味着完全可以将同一客户信息的多个副本保留在您站点的数据库中,因为他们所做的每笔订单实际上都会复制此副本。它可能不是最有效的方法,但是它的确具有以下优点:分别记录任何详细信息更改,例如,在交货地址发生更改的情况下,这很方便。同样,在下订单时,将为客户创建并存储WordPress用户帐户,其中wp_users表存储诸如电子邮件地址之类的内容,而wp_usermeta则用于处理其运送详细信息。WooCommerce本质上是一个插件,它向数据库引入了许多新表,每个表都经过专门调整以为站点操作员提供有用的功能。这是这些自定义表的简要概述,以及每个函数的作用。 actionscheduler_actions 动作计划程序将完成的动作列表 actionscheduler_claims actionscheduler_groups actionscheduler_logs 由动作计划程序完成的动作 woocommerce_sessions 主要包含用户的购物车 woocommerce_api_keys API密钥存储 woocommerce_attribute_taxonomies 类别,标签等 woocommerce_downloadable_product_permissions 下载访问权限 woocommerce_order_items 链接到订单的订单项 woocommerce_order_itemmeta 订单项元数据 woocommerce_tax_rates 手动设置的税率列表 woocommerce_tax_rate_locations 基于位置的税率数据 woocommerce_shipping_zones 定制运输区域列表 woocommerce_shipping_zone_locations 运输区域的位置 woocommerce_shipping_zone_methods 每个区域的运输方式 woocommerce_payment_tokens 付款令牌 woocommerce_payment_tokenmeta 支付令牌元数据 woocommerce_log 事件簿 wc_webhooks 网络挂钩 wc_download_log 下载日志 wc_product_meta_lookup 查找表,可以更快地搜索订单内的产品 wc_tax_rate_classes... read more
曾经遇到这样的一个问题:将一个WordPress主题安装包文件上传到了服务器wp-content/themes文件夹下,但是登录后台,外观-主题里面却不显示。而且是所有的主题都不显示。几经折腾后才发现了原因:原来是PHP配置文件里面,有个scandir函数被禁用了。所以如果你也遇到了这个问题,请尝试查看一下PHP配置文件里面的scandir函数是否被禁用。 read more
WordPress,是垃圾邮件、垃圾评论经常光顾的一个系统。下面的代码将会屏蔽评论内容中的超链接:function wp_comment_post( $incoming_comment ) { $http = '/[href="|rel="nofollow"|http:\/\/|<\/a>]/u'; if(preg_match($http, $incoming_comment['comment_content'])) { err( "禁止发链接地址!" ); } return( $incoming_comment ); } add_filter('preprocess_comment', 'wp_comment_post'); read more
function fjj_show_tags_again_single_product() { global $product; ?> <div class="product_meta"> <?php echo wc_get_product_tag_list( $product->get_id(),... read more