跳到主要内容

WP Latest Posts开发人员文档

本文档将帮助有经验的开发人员使用我们的插件插入任何其他服务。 这是此插件的所有操作和过滤器,如果您需要更多,请随时使用此 专用论坛 询问 感谢您使用我们的插件!

wplp_save_widget

WP Latest Posts之后的操作将设置保存到数据库。

参数:

integer widget ID

Return :

void

在文件中:

inc/wplp-widget.inc.php 第 152 行

debug_information

添加或修改调试信息。
插件或主题可能希望在不创建其他管理页面的情况下引入自己的调试信息,
因此他们可以利用此过滤器来引入自己的部分或向现有部分添加更多数据。
核心添加的部分的数组键均以`wp-'开头,插件和主题应使用其自己的slug作为
前缀,以确保一致性并避免键冲突。
请注意,阵列键用作复制数据的
标签。 除$ description可以包含内联HTML标记(请参阅下文)外,所有字符串均应为纯文本。

参数:

array $info Information

Return :

void

在文件中:

jufeedback/ju-check-debug-data.php 第 1075 行

wplp_box_layout_position

要在布局的每个部分上显示的帖子字段
您可以在任何布局部分(顶部,右侧,底部,左侧)添加/删除帖子字段

参数:

array Default items
string Box position
integer Widget ID
string 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 url
integer Post ID
string Image size

Return :

string

在文件中:

inc/wplp-front.inc.php 第 3138 行

wplp_custom_posts_get_data

过滤以修改某些自定义帖子类型的获取帖子结果

参数:

array|object List of posts
array List argument
array Widget details

Return :

array

在文件中:

公司/wplp-front.inc.php 第 956 行

wplp_front_author_field

筛选作者姓名以进行前端显示。

参数:

string Author field

Return :

string

在文件中:

inc/wplp-front.inc.php 第 3472 行

wplp_front_category_field

前端显示的过滤器类别名称。

参数:

string Category name

Return :

string

在文件中:

inc/wplp-front.inc.php 第 3444 行

wplp_front_date_field

前端显示的过滤日期

参数:

string Date

Return :

string

在文件中:

inc/wplp-front.inc.php 第 3498 行

wplp_front_image_field

显示的过滤图像用于前端显示

参数:

string Image
array Latest posts settings

Return :

string

在文件中:

inc/wplp-front.inc.php 第 2751 行
inc/wplp-front.inc.php 第 3244 行

wplp_front_readmore_field

筛选readmore链接以进行前端显示。

参数:

string Readmore link

Return :

string

在文件中:

inc/wplp-front.inc.php 第 3276 行

wplp_front_text_field

筛选主要文本以进行前端显示

参数:

string Post text

Return :

string

在文件中:

inc/wplp-front.inc.php 第 2667 行

wplp_front_title_field

前端显示的过滤器标题

参数:

string Title

Return :

string

在文件中:

inc/wplp-front.inc.php 第 2569 行

wplp_src_category_args

过滤列表参数以获取帖子。

参数:

array List argument
array 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 行