WP Latest Posts 开发者文档
本文档将帮助经验丰富的开发者将其他服务与我们的插件集成。以下是此插件的所有操作和过滤器,如果您需要更多信息,请随时在 专属论坛上提问。 感谢您使用我们的插件!
wplp_save_widget
WP Latest Posts 将设置保存到数据库后的操作。.
参数 :
integer widget ID
Return :
void
文件内容:
inc/wplp-widget.inc.php 第 152 行
调试信息
添加或修改调试信息。插件或主题可能希望在不创建额外管理页面的情况下引入自己的调试信息——它们可以使用此过滤器来添加自己的部分或向现有部分添加更多数据。核心添加的部分的数组键均以 `wp-` 为前缀,插件和主题应使用自己的别名作为前缀,这样既能保持一致性,又能避免键冲突。请注意,数组键用作复制数据的标签。除 `$description` 可以包含内联 HTML 标签(见下文)外,所有字符串都应为纯文本。.
参数 :
array $info Information
Return :
void
文件内容:
jufeedback/ju-check-debug-data.php 第 1075 行
wplp_box_layout_position
要在布局的每个部分显示的文章字段您可以在任何布局部分(顶部、右侧、底部、左侧)添加/删除文章字段
参数 :
array Default itemsstring Box positioninteger Widget IDstring Theme name
Return :
array
文件内容:
inc/wplp-front.inc.php 第 176 行inc/wplp-front.inc.php 第 201 行inc/wplp-front.inc.php 第 230 行inc/wplp-front.inc.php 第 244 行inc/wplp-front.inc.php 第 385 行inc/wplp-front.inc.php 第 399 行
wplp_change_thumbnail_link
筛选帖子缩略图链接以用于前端显示
参数 :
string Thumbnail urlinteger Post IDstring Image size
Return :
string
文件内容:
inc/wplp-front.inc.php 第 3140 行
wplp_custom_posts_get_data
筛选器,用于修改某些自定义文章类型的“获取文章”结果
参数 :
array|object List of postsarray List argumentarray Widget details
Return :
array
文件内容:
inc/wplp-front.inc.php 第 956 行
wplp_front_author_field
筛选前端显示的作者姓名。.
参数 :
string Author field
Return :
string
文件内容:
inc/wplp-front.inc.php 第 3474 行
wplp_front_category_field
筛选器类别名称,用于前端显示。.
参数 :
string Category name
Return :
string
文件内容:
inc/wplp-front.inc.php 第 3446 行
wplp_front_date_field
筛选前端显示的日期
参数 :
string Date
Return :
string
文件内容:
inc/wplp-front.inc.php 第 3500 行
wplp_front_image_field
前端显示的滤镜图像
参数 :
string Imagearray Latest posts settings
Return :
string
文件内容:
inc/wplp-front.inc.php 第 2753 行inc/wplp-front.inc.php 第 3246 行
wplp_front_readmore_field
筛选前端显示的“阅读更多”链接。.
参数 :
string Readmore link
Return :
string
文件内容:
inc/wplp-front.inc.php 第 3278 行
wplp_front_text_field
筛选前端显示的主要文本
参数 :
string Post text
Return :
string
文件内容:
inc/wplp-front.inc.php 第 2669 行
wplp_front_title_field
前端显示筛选标题
参数 :
string Title
Return :
string
文件内容:
inc/wplp-front.inc.php 第 2571 行
wplp_src_category_args
筛选列表参数以获取帖子。.
参数 :
array List argumentarray List settings
Return :
array
文件内容:
inc/wplp-front.inc.php 第 675 行inc/wplp-front.inc.php 第 710 行inc/wplp-front.inc.php 第 744 行inc/wplp-front.inc.php 第 781 行inc/wplp-front.inc.php 第 842 行inc/wplp-front.inc.php 第 940 行