以下內容是 2020年 April 的归档:

微信支付 授权配置地址(JSAPI/Native)

开发配置支付配置,支付授权目录,JSAPI支付,Native支付,Native支付回调链接 JSAPI 最多支持5个。 https://pay.weixin.qq.com/index.php/extend/pay_setting (more...)

转:WordPress主题添加自定义文章类型register_post_type和分类法

/* Register Custom Post Type */ add_action( 'init', 'create_products_post_type' ); // add portfolio function create_products_post_type() { $labels = array( 'name' => __('产品', 'WPGP'), 'singular_name' => _ ... (more...)

DiscuzX2.5完整目录结构【source/include】

|-- /source/include 程序功能处理目录 |-- /source/include/collection 淘贴功能模块 collection_comment.php 淘贴评论 collection_edit.php 淘贴编辑 collection_follow.php 淘贴 ... (more...)

【discuz模板】DiscuzX2.5完整目录结构注释!【language/module/plugin】

|-- /source/language 程序语言包(如不清楚,请打开各个文件查看) |-- /source/language/adv 广告语言包 |-- /source/language/block DIY语言包 |-- /source/language/forum 论坛相关语言包 |-- /source/language/group 群组语言包 |-- /source/la ... (more...)

DiscuzX2.5完整目录结构【模板目录template】

/template/default/common 公共模板目录全局加载 block_forumtree.htm DIY论坛树形列表模块 block_thread.htm DIY帖子模块调用文件 block_userinfo.htm 未找到相应的程序调用 buyinvitecode.htm 购买邀请码 common.css 全局css样式 ... (more...)

DiscuzX2.5完整目录结构注释!【source核心程序功能:function】

|-- /source/function DX自定义函数库 |--/function_admincp.php 后台各项处理函数 |--/function_attachment.php 附件类处理函数 |--/function_block.php DIY模块调用处理函数 |--/function_blog.php 日志函数 ... (more...)

discuz 搬家/迁移/更改域名后 Ucenter通信失败容易忽视的一个情况

1、检查UC_KEY在/admin.php和/uc_server/admin.php的设置是否一致,这个很容易出现的问题。如果你迁移时担心出问题,最好先保存一遍。 (more...)

WordPress判断自定义域有值才显示

以自定义域的名称为spydance为例 $spydance = get_post_meta($pid, 'spydance', true); 有值需要显示的内容 //有值显示 没有值需要显示的内容//没有值显示 (more...)

自定义字段manage_{post_type}_posts_columns栏目文章列表排序

如果是栏目的值是数字的话,比较好用。参考下面代码 mycpt是注册的自定义文章格式,比如你注册的product或者movie就对应修改下。 Modifying the Custom Columns for a Post Type add_filter( 'manage_mycpt_posts_columns', 'set_custom_edit_mycpt_ ... (more...)

自定义字段manage_{post_type}_posts_columns栏目文章列表添加钩子

文章添加一些新的字段名称,默认的字段名称如下图所示,包括标题、作者、分类目录等等,如果我们想要添加一个新的字段,就需要使用这个钩子了 (more...)