跳转到主要内容

WP File Download 开发者文档

本文档将帮助经验丰富的开发者将其他服务与我们的插件集成。以下是此插件的所有操作和过滤器,如果您需要更多信息,请随时在 专属论坛上提问。 感谢您使用我们的插件!

导入术语元数据

在术语元数据导入后触发。.

参数 :

int $term_id ID of the newly created term.string $key Meta key.mixed $value Meta value.

Return :

void

文件内容:

app/admin/classes/import/class-wp-import.php 第 401 行

wpdf_admin_notices

操作以编写进口通知

参数 :

none

Return :

void

文件内容:

app/admin/views/config/tpl/ui-default.php 第 50 行app/admin/views/wpfd/tpl/ui-default.php 第 153 行app/admin/views/iconsbuilder/tpl/default.php 第 50 行

wpfd_addon_stream_file_pdf_embed

直接在云端读取 PDF 文件时触发动作

参数 :

integer|string $fileId Cloud file idstring $categoryFrom Category sourcestring $url Url embed

Return :

void

文件内容:

app/site/init.php 第 224 行

wpfd_addon_update_version_description

复制后的操作更新版本和描述

参数 :

string Versionstring Descriptionstring Category fromstring Category TermId

Return :

void

文件内容:

app/admin/controllers/files.php 第 950 行app/admin/controllers/files.php 第 1043 行app/admin/controllers/files.php 第 2765 行app/admin/controllers/files.php 第 1076 行app/admin/controllers/files.php 第 1382 行app/admin/controllers/files.php 第 1884 行app/admin/controllers/files.php 第 3176 行app/admin/controllers/files.php 第 3667 行app/admin/controllers/files.php 第 1138 行app/admin/controllers/files.php 第 2168 行app/admin/controllers/files.php 第 2842app/admin/controllers/files.php 第 3978 行app/admin/controllers/files.php 第 1197 行app/admin/controllers/files.php 行1321app/admin/controllers/files.php 第 1644 行app/admin/controllers/files.php 第 2902行 app/admin/controllers/files.php 第 3043 行app/admin/controllers/files.php 第 3380 行app/admin/controllers/files.php 第 1260 行app/admin/controllers/files.php 第 1764 行app/admin/controllers/files.php 第 2293 行app/admin/controllers/files.php 第 2970 行app/admin/controllers/files.php 第 4108 行app/admin/controllers/files.php 第 1441 行app/admin/controllers/files.php 第 1549 行app/admin/controllers/files.php 第 3105 行app/admin/controllers/files.php 第 3519 行app/admin/controllers/files.php 第 1515 行app/admin/controllers/files.php 第 3262 行app/admin/controllers/files.php 第 1582 行app/admin/controllers/files.php 第 1943 行app/admin/controllers/files.php 第 3593 行app/admin/controllers/files.php 第 3725 行app/admin/controllers/files.php 第 1707 行app/admin/controllers/files.php 第 1823 行app/admin/controllers/files.php 第 2421 行app/admin/controllers/files.php 第 2017 行app/admin/controllers/files.php 第 2094app/admin/controllers/files.php 第 2228 行app/admin/controllers/files.php 第 2355 行app/admin/controllers/files.php第 2484 行app/admin/controllers/files.php 第 4039 行app/admin/controllers/files.php 第 4181 行app/admin/controllers/files.php 第 4323 行app/admin/controllers/files.php 第 2679 行app/admin/controllers/files.php 第 3309 行app/admin/controllers/files.php 第 3446 行app/admin/controllers/files.php 第 4249 行app/admin/controllers/files.php 第 3813 行app/admin/controllers/files.php 第 3845 行

wpfd_addon_update_version_description

复制后更新操作版本和描述

参数 :

string Versionstring Descriptionstring Category fromstring Category TermId

Return :

void

文件内容:

app/admin/controllers/files.php 第 950 行app/admin/controllers/files.php 第 1043 行app/admin/controllers/files.php 第 2765 行app/admin/controllers/files.php 第 1076 行app/admin/controllers/files.php 第 1382 行app/admin/controllers/files.php 第 1884 行app/admin/controllers/files.php 第 3176 行app/admin/controllers/files.php 第 3667 行app/admin/controllers/files.php 第 1138 行app/admin/controllers/files.php 第 2168 行app/admin/controllers/files.php 第 2842app/admin/controllers/files.php 第 3978 行app/admin/controllers/files.php 第 1197 行app/admin/controllers/files.php 行1321app/admin/controllers/files.php 第 1644 行app/admin/controllers/files.php 第 2902行 app/admin/controllers/files.php 第 3043 行app/admin/controllers/files.php 第 3380 行app/admin/controllers/files.php 第 1260 行app/admin/controllers/files.php 第 1764 行app/admin/controllers/files.php 第 2293 行app/admin/controllers/files.php 第 2970 行app/admin/controllers/files.php 第 4108 行app/admin/controllers/files.php 第 1441 行app/admin/controllers/files.php 第 1549 行app/admin/controllers/files.php 第 3105 行app/admin/controllers/files.php 第 3519 行app/admin/controllers/files.php 第 1515 行app/admin/controllers/files.php 第 3262 行app/admin/controllers/files.php 第 1582 行app/admin/controllers/files.php 第 1943 行app/admin/controllers/files.php 第 3593 行app/admin/controllers/files.php 第 3725 行app/admin/controllers/files.php 第 1707 行app/admin/controllers/files.php 第 1823 行app/admin/controllers/files.php 第 2421 行app/admin/controllers/files.php 第 2017 行app/admin/controllers/files.php 第 2094app/admin/controllers/files.php 第 2228 行app/admin/controllers/files.php 第 2355 行app/admin/controllers/files.php第 2484 行app/admin/controllers/files.php 第 4039 行app/admin/controllers/files.php 第 4181 行app/admin/controllers/files.php 第 4323 行app/admin/controllers/files.php 第 2679 行app/admin/controllers/files.php 第 3309 行app/admin/controllers/files.php 第 3446 行app/admin/controllers/files.php 第 4249 行app/admin/controllers/files.php 第 3813 行app/admin/controllers/files.php 第 3845 行

wpfd_admin_after_file_title_field

标题字段后的操作

参数 :

string Current file information

Return :

void

文件内容:

app/admin/forms/file.xml 第 60 行

wpfd_after_bottom_file_save_settings

底部文件保存设置按钮后执行的操作

参数 :

string Current file information

Return :

void

文件内容:

app/admin/forms/file.xml 第 261 行

wpfd_after_category_main_settings

在右侧面板中,按照类别主设置执行操作。

参数 :

integer Current category id

Return :

void

文件内容:

app/admin/views/category/tpl/default.php 第 185 行

wpfd_after_create_new_category

创建新类别后的操作

参数 :

integer New category idstring Category created name

Return :

void

文件内容:

app/admin/controllers/category.php 第 89 行

wpfd_after_fieldset_category_main_settings

在右侧面板中设置类别主设置字段集后执行操作

参数 :

integer Current category id

Return :

void

文件内容:

app/admin/views/category/tpl/default.php 第 194 行

wpfd_after_single_file_info

单文件显示后触发操作,前提是文件信息已显示

参数 :

object File object

Return :

void

文件内容:

app/site/themes/templates/tpl-single.php 第 75 行

wpfd_after_template_part

执行模板部件后的射击操作

参数 :

string Template namestring Template path dirstring Template patharray Template variables

Return :

void

文件内容:

app/functions.php 第 891 行

wpfd_before_category_main_settings

在右侧面板中,操作先于类别主设置。

参数 :

integer Current category id

Return :

void

文件内容:

app/admin/views/category/tpl/default.php 第 95 行

wpfd_before_fieldset_category_main_settings

在右侧面板中设置类别主设置字段之前执行操作

参数 :

integer Current category id

Return :

void

文件内容:

app/admin/views/category/tpl/default.php 第 64 行

wpfd_before_index_remove

移除索引前执行操作

参数 :

integer Post id

Return :

void

文件内容:

app/admin/models/fts.php 第 1088 行

wpfd_before_single_file_info

在单个文件显示中,操作触发之前会先显示文件信息

参数 :

object File object

Return :

void

文件内容:

app/site/themes/templates/tpl-single.php 第 59 行

wpfd_before_template_part

在名为“Action fire”的模板部件之前进行射击

参数 :

string Template namestring Template path dirstring Template patharray Template variables

Return :

void

文件内容:

app/functions.php 第 879 行

wpfd_download_file_permission

当当前用户没有足够的权限下载此文件时,此操作触发。.

参数 :

string|integer string|integer integer

Return :

void

文件内容:

app/site/controllers/files.php 第 49 行app/site/controllers/file.php 第 72 行

wpfd_download_file_permission

当当前用户没有足够的权限下载此文件时,此操作触发。.

参数 :

string|integer string|integer integer

Return :

void

文件内容:

app/site/controllers/files.php 第 49 行app/site/controllers/file.php 第 72 行

wpfd_download_link_expired

针对已过期下载页面的操作

参数 :

string|integer string|integer integer

Return :

void

文件内容:

app/site/controllers/file.php 第 112 行

wpfd_file_deleted

文件删除后触发动作

参数 :

array Deleted file infoWP_Term Category the file was deleted fromarray Additional information

Return :

void

文件内容:

app/admin/controllers/file.php 第 963 行app/admin/controllers/file.php 第 1064 行app/admin/controllers/file.php 第 1521 行

wpfd_file_download

文件下载前立即执行操作。请勿在此处回显任何内容,否则文件下载将损坏。

参数 :

object File idarray Source

Return :

void

文件内容:

app/site/controllers/file.php 第 409 行app/site/controllers/file.php 第 495 行app/site/controllers/file.php 第 602 行app/site/controllers/file.php 第 680 行app/site/controllers/file.php 第 756 行app/site/controllers/file.php 第 798 行app/site/controllers/file.php 第 821 行app/site/controllers/file.php 第 913 行

wpfd_file_download

文件下载前立即执行操作。请勿在此处回显任何内容,否则文件下载将损坏。

参数 :

object File idarray Source

Return :

void

文件内容:

app/site/controllers/file.php 第 409 行app/site/controllers/file.php 第 495 行app/site/controllers/file.php 第 602 行app/site/controllers/file.php 第 680 行app/site/controllers/file.php 第 756 行app/site/controllers/file.php 第 798 行app/site/controllers/file.php 第 821 行app/site/controllers/file.php 第 913 行

wpfd_file_indexed

文件索引后触发操作

参数 :

integer Inserted post idarray Post content to index

Return :

void

文件内容:

app/admin/models/fts.php 第 1190 行

wpfd_file_uploaded

文件上传后执行操作

参数 :

integer|WP_Error The file ID on success. The value 0 or WP_Error on failure.array Additional information

Return :

void

文件内容:

app/admin/models/files.php 第 1507 行

wpfd_generate_preview_after_merge_image_vertical

合并图像后的动作触发垂直

参数 :

string $destinationPath Merged image pathWpfdModelGeneratepreview $this Current Model

Return :

void

文件内容:

app/admin/models/generatepreview.php 第 1097 行

wpfd_generate_preview_after_resize_thumbnail

缩略图调整大小后的动作文件

参数 :

string $fileName Thumbnail file path

Return :

void

文件内容:

app/admin/models/generatepreview.php 第 976 行

wpfd_generate_preview_before_merge_image_vertical

合并图像垂直之前的动作射击

参数 :

array $images Images page arraystring $destinationPath Merged image pathWpfdModelGeneratepreview $this Current Model

Return :

void

文件内容:

app/admin/models/generatepreview.php 第 1001 行

wpfd_preview_file_permission

当当前用户没有足够的权限预览此文件时,此操作触发。.

参数 :

string|integer string|integer integer

Return :

void

文件内容:

app/site/controllers/file.php 第 100 行app/site/helpers/WpfdHelperShortcodes.php 第 4374 行

wpfd_preview_file_permission

当当前用户没有足够的权限预览此文件时,此操作触发。.

参数 :

string|integer string|integer integer

Return :

void

文件内容:

app/site/controllers/file.php 第 100 行app/site/helpers/WpfdHelperShortcodes.php 第 4374 行

wpfd_preview_generated

缩略图/预览保存后触发动作

参数 :

string $savedFilePath Generated preview file pathstring $thumbnailPath Generated thumbnail file patharray $currentQueue Current queue informationWpfdModelGeneratepreview $this GeneratePreview Model

Return :

void

文件内容:

app/admin/models/generatepreview.php 第 438 行app/admin/models/generatepreview.php 第 584 行app/admin/models/generatepreview.php 第 788 行

wpfd_save_category

保存类别参数后触发操作

参数 :

integer Term idarray Category params

Return :

void

文件内容:

app/admin/controllers/category.php 第 398 行

wpfd_save_category_settings_button

在右侧面板中,点击“保存类别”按钮之前,先执行操作

参数 :

integer Current category id

Return :

void

文件内容:

app/admin/views/category/tpl/default.php 第 405 行

wpfd_save_file_params

文件数据保存到数据库后

参数 :

array File data array

Return :

void

文件内容:

app/admin/models/file.php 第 192 行

wpfd_update_category_color

更新类别颜色

参数 :

integer Term id to change colorstring New category color

Return :

void

文件内容:

app/admin/controllers/category.php 第 332 行app/admin/controllers/category.php 第 803 行app/admin/controllers/category.php 第 944 行

wpfd_update_category_color

更新类别颜色

参数 :

integer Term id to change colorstring New category color

Return :

void

文件内容:

app/admin/controllers/category.php 第 332 行app/admin/controllers/category.php 第 803 行app/admin/controllers/category.php 第 944 行

wpfd_update_category_color

更新类别颜色

参数 :

integer Term id to change colorstring New category color

Return :

void

文件内容:

app/admin/controllers/category.php 第 332 行app/admin/controllers/category.php 第 803 行app/admin/controllers/category.php 第 944 行

wpfd_update_category_description

更新类别颜色后

参数 :

integer Term id to change colorstring New category color

Return :

void

文件内容:

app/admin/controllers/category.php 第 290 行

wpfd_update_category_name

更新类别名称

参数 :

integer Term id to change namestring New category name

Return :

void

文件内容:

app/admin/controllers/category.php 第 133 行

wpfd_{$themeName}_after_custom_hooks

自定义钩子后的动作射击

参数 :

none

Return :

void

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 845 行

wpfd_{$themeName}_after_template_hooks

模板钩子后执行操作

参数 :

none

Return :

void

文件内容:

app/site/themes/wpfd-ggd/theme.php 第 119 行app/site/themes/wpfd-preview/theme.php 第 117 行app/site/themes/templates/wpfd-theme.class.php 第 835 行app/site/themes/wpfd-tree/theme.php 第 90 行

wpfd_{$themeName}_after_theme_content

主题内容后的操作打印

参数 :

object Current theme instancearray Category config

Return :

void

文件内容:

app/site/themes/wpfd-ggd/tpl.php 第 316 行app/site/themes/wpfd-preview/tpl.php 第 319 行app/site/themes/wpfd-default/tpl.php 第 340 行app/site/themes/wpfd-table/tpl.php 第 298 行app/site/themes/templates/tpl-default.php 第 219 行

wpfd_{$themeName}_before_files_loop

文件循环之前执行操作

参数 :

object Current theme paramsarray Category config

Return :

void

文件内容:

app/site/themes/wpfd-ggd/tpl.php 第 229 行app/site/themes/wpfd-preview/tpl.php 第 230 行app/site/themes/wpfd-default/tpl.php 第 195 行app/site/themes/wpfd-table/tpl.php 第 146 行app/site/themes/templates/tpl-default.php 第 139 行app/site/themes/wpfd-tree/tpl.php 第 221 行

wpfd_{$themeName}_before_files_loop_handlebars

Handlebars 模板中文件循环之前触发操作

参数 :

array Current theme paramsarray Category config

Return :

void

文件内容:

app/site/themes/wpfd-ggd/tpl.php 第 121 行app/site/themes/wpfd-preview/tpl.php 第 121 行app/site/themes/wpfd-default/tpl.php 第 47 行app/site/themes/wpfd-table/tpl.php 第 36 行app/site/themes/templates/tpl-default.php 第 43 行

wpfd_{$themeName}_before_template_hooks

行动触发前模板已连接

参数 :

none

Return :

void

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 700 行

wpfd_{$themeName}_before_theme_content

主题内容前的行动打印

参数 :

object Current theme params

Return :

void

文件内容:

app/site/themes/wpfd-ggd/tpl.php 第 101 行app/site/themes/wpfd-preview/tpl.php 第 101 行app/site/themes/wpfd-default/tpl.php 第 27 行app/site/themes/wpfd-table/tpl.php 第 106 行app/site/themes/templates/tpl-default.php 第 25 行app/site/themes/wpfd-tree/tpl.php 第 204 行app/site/themes/wpfd-tree/tpl.php 第 351 行

wpfd_{$themeName}_buttons

显示按钮的操作

参数 :

object Current file objectarray Global configarray Category config

Return :

void

文件内容:

app/site/themes/wpfd-default/tpl.php 第 284 行app/site/themes/wpfd-table/tpl.php 第 237 行app/site/themes/templates/tpl-default.php 第 198 行

wpfd_{$themeName}_buttons_handlebars

车把模板中的操作打印按钮

参数 :

array $config Main configarray $params Category config

Return :

void

文件内容:

app/site/themes/wpfd-ggd/tpl.php 第 83 行app/site/themes/wpfd-preview/tpl.php 第 83 行app/site/themes/wpfd-default/tpl.php 第 123 行app/site/themes/wpfd-table/tpl.php 第 84 行app/site/themes/templates/tpl-default.php 第 101 行app/site/themes/wpfd-tree/tpl.php 第 84 行

wpfd_{$themeName}_columns

显示列的操作

参数 :

array Main configarray Category config

Return :

void

文件内容:

app/site/themes/wpfd-table/tpl.php 第 173 行

wpfd_{$themeName}_file_block

显示文件块的操作

参数 :

object Current file objectarray Global configarray Category config

Return :

void

文件内容:

app/site/themes/wpfd-ggd/tpl.php 第 256 行app/site/themes/wpfd-preview/tpl.php 第 259 行

wpfd_{$themeName}_file_block_handlebars

在 Handlebars 模板中显示文件块的操作

参数 :

array Main configarray Category config

Return :

void

文件内容:

app/site/themes/wpfd-ggd/tpl.php 第 154 行app/site/themes/wpfd-preview/tpl.php 第 156 行

wpfd_{$themeName}_file_content

显示文件内容的操作

参数 :

object Current file objectarray Global configarray Category config

Return :

void

文件内容:

app/site/themes/wpfd-default/tpl.php 第 243 行app/site/themes/templates/tpl-default.php 第 161 行

wpfd_{$themeName}_file_content_handlebars

Handlebars 模板中的操作打印文件内容

参数 :

array $config Main configarray $params Category config

Return :

void

文件内容:

app/site/themes/wpfd-ggd/tpl.php 第 44 行app/site/themes/wpfd-preview/tpl.php 第 44 行app/site/themes/wpfd-default/tpl.php 第 83 行app/site/themes/templates/tpl-default.php 第 65 行app/site/themes/wpfd-tree/tpl.php 第 45 行

wpfd_{$themeName}_file_info

显示文件信息的操作

参数 :

object Current file objectarray Category config

Return :

void

文件内容:

app/site/themes/wpfd-default/tpl.php 第 264 行app/site/themes/wpfd-table/tpl.php 第 218 行app/site/themes/templates/tpl-default.php 第 180 行

wpfd_{$themeName}_file_info_handlebars

在 Handlebars 模板中显示文件信息的操作

参数 :

array Global configarray Category config

Return :

void

文件内容:

app/site/themes/wpfd-ggd/tpl.php 第 65 行app/site/themes/wpfd-preview/tpl.php 第 65 行app/site/themes/wpfd-default/tpl.php 第 104 行app/site/themes/wpfd-table/tpl.php 第 64 行app/site/themes/templates/tpl-default.php 第 84 行app/site/themes/wpfd-tree/tpl.php 第 66 行

wpfd_{$themeName}_folder_tree

操作打印文件夹树

参数 :

object Current theme paramsarray Category config

Return :

void

文件内容:

app/site/themes/wpfd-ggd/tpl.php 第 209 行app/site/themes/wpfd-preview/tpl.php 第 210 行app/site/themes/wpfd-default/tpl.php 第 175 行app/site/themes/wpfd-table/tpl.php 第 126 行app/site/themes/templates/tpl-default.php 第 122 行

_wpfd_preview_generate_queue_running_updating

用于更新预览队列运行情况的过滤器

参数 :

none

Return :

boolean

文件内容:

app/admin/views/config/view.php 第 225 行

import_term_meta_key

筛选导入的术语元数据的元键。.

参数 :

string $meta_key Meta key.int $term_id ID of the newly created term.array $term Term data from the WXR import.

Return :

void

文件内容:

app/admin/classes/import/class-wp-import.php 第 383 行

内容导出

筛选用于 WXR 导出的帖子内容。.

参数 :

string $post_content Content of the current post.

Return :

void

文件内容:

app/admin/controllers/config.php 第 1011 行

the_excerpt_export

筛选用于 WXR 导出的文章摘要。.

参数 :

string $post_excerpt Excerpt for the current post.

Return :

void

文件内容:

app/admin/controllers/config.php 第 1021 行

wp_import_term_meta

筛选导入术语所附加的元数据。.

参数 :

array $termmeta Array of term meta.int $term_id ID of the newly created term.array $term Term data from the WXR import.

Return :

void

文件内容:

app/admin/classes/import/class-wp-import.php 第 368 行

wpfd_

表格的其他类别

参数 :

array

Return :

void

文件内容:

app/site/themes/wpfd-table/theme.php 第 219 行

wpfd_abs_path_to_url

筛选以更改最终 URL

参数 :

string

Return :

void

文件内容:

app/functions.php 第 1181 行

wpfd_addon_locker_mail_subscribe

筛选邮件存储订阅

参数 :

none

Return :

array

文件内容:

app/site/controllers/files.php 第 640 行

wpfd_ajax_allowed_tasks

筛选通过已认证的 WPFD AJAX 调度程序公开的任务。.

参数 :

array $allowedTasks Allowed controller tasks.

Return :

void

文件内容:

app/admin/init.php 第 389 行

wpfd_always_generate_breadcrumbs

筛选条件:始终默认生成面包屑导航。

参数 :

boolean

Return :

void

文件内容:

app/site/models/categoryfront.php 第 58 行

wpfd_auto_create_private_folders

自动创建私有文件夹的筛选器

参数 :

boolean

Return :

boolean

文件内容:

app/admin/init.php 第 1633 行app/admin/init.php 第 1799 行

wpfd_auto_create_private_folders

自动创建私有文件夹的筛选器

参数 :

boolean

Return :

boolean

文件内容:

app/admin/init.php 第 1633 行app/admin/init.php 第 1799 行

wpfd_automatic_revision

筛选器允许更改自动修订

参数 :

string array

Return :

void

文件内容:

app/admin/controllers/files.php 第 4646 行

wpfd_automatic_revision_date_format

过滤器允许在自动版本控制中更改日期格式

参数 :

string array

Return :

void

文件内容:

app/admin/controllers/files.php 第 4608 行

wpfd_automatic_revision_enabled

过滤器允许启用自动版本

参数 :

boolean array

Return :

void

文件内容:

app/admin/controllers/files.php 第 4562 行

wpfd_automatic_revision_increment_replacement

过滤器允许更改自动版本的替换方式

参数 :

string array

Return :

void

文件内容:

app/admin/controllers/files.php 第 4629 行

wpfd_automatic_revision_pattern

过滤器允许更改自动版本模式

参数 :

string array

Return :

void

文件内容:

app/admin/controllers/files.php 第 4575 行

wpfd_back_button_handlebars

全局过滤器,用于更改后退按钮手柄的 HTML 代码和参数

参数 :

array Template arrayobject Current theme objectarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2786 行

wpfd_before_save_category

保存到数据库之前,请先筛选类别参数。

参数 :

array Category paramsinteger Term id

Return :

array

文件内容:

app/admin/controllers/category.php 第 388 行

wpfd_before_save_file_metadata

过滤器允许在保存到数据库之前修改文件元数据

参数 :

array File meta data array

Return :

array

文件内容:

app/admin/models/file.php 第 182 行

wpfd_before_save_file_params

过滤器允许在保存到数据库之前修改文件数据

参数 :

array File data array

Return :

array

文件内容:

app/admin/models/file.php 第 107 行

wpfd_before_update_category_color

筛选器更新类别颜色

参数 :

string New category colorinteger Term id to change name

Return :

string|boolean

文件内容:

app/admin/controllers/category.php 第 323 行

wpfd_before_update_category_description

筛选器更新类别描述

参数 :

string New category descriptioninteger Term id to change name

Return :

string|boolean

文件内容:

app/admin/controllers/category.php 第 277 行

wpfd_before_update_category_name

筛选器更新类别名称

参数 :

string New category nameinteger Term id to change name

Return :

string|boolean

文件内容:

app/admin/controllers/category.php 第 125 行

wpfd_上传前文件

上传文件前先进行过滤

参数 :

array File datainteger Current user id

Return :

array

文件内容:

app/admin/models/files.php 第 1416 行

wpfd_can_access_plugin_cache_ttl

筛选以更改此检查的缓存生命周期。.

参数 :

integer

Return :

void

文件内容:

app/admin/helpers/WpfdHelperFolder.php 第 483 行

wpfd_can_access_plugin_timeout

筛选器用于更改 HTTP 请求超时时间。.

参数 :

integer

Return :

void

文件内容:

app/admin/helpers/WpfdHelperFolder.php 第 490 行

wpfd_categories

允许筛选首页类别列表

参数 :

array

Return :

void

文件内容:

app/site/models/categoriesfront.php 第 176 行

wpfd_categories_order

筛选器允许更改类别的排序方向。

参数 :

string

Return :

string

文件内容:

app/site/controllers/categories.php 第 81 行app/site/models/categoriesfront.php 第 53 行app/site/models/categoriesfront.php 第 338 行app/site/models/categoriesfront.php 第 393 行

wpfd_categories_orderby

筛选器允许更改类别列的顺序。

参数 :

string

Return :

string

文件内容:

app/site/controllers/categories.php 第 90 行app/site/models/categoriesfront.php 第 64 行app/site/models/categoriesfront.php 第 349 行app/site/models/categoriesfront.php 第 404 行

wpfd_category_description_handlebars

全局过滤器,用于更改类别描述 Handlebars 的 html 和参数

参数 :

array Template arrayobject Current theme objectarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2955 行

wpfd_category_item_handlebars

全局过滤器,用于更改类别项句柄的 HTML 和参数

参数 :

array Template arrayobject Current theme objectarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 3063 行

wpfd_category_loading_message

筛选器允许启用类别加载消息

参数 :

boolean

Return :

boolean

文件内容:

app/functions.php 第 2319 行app/site/themes/templates/wpfd-theme.class.php 第 549 行

wpfd_category_loading_message

筛选器允许启用类别加载消息

参数 :

boolean

Return :

boolean

文件内容:

app/functions.php 第 2319 行app/site/themes/templates/wpfd-theme.class.php 第 549 行

wpfd_category_title

全局过滤器,用于更改类别标题的 HTML 和参数

参数 :

array Template arrayobject Current theme objectarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2908 行

wpfd_category_title_handlebars

全局过滤器,用于更改类别标题 Handlebars 的 html 和参数

参数 :

array Template arrayobject Current theme objectarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2841 行

wpfd_category_tree

全局过滤器,用于更改类别树的 HTML 和参数

参数 :

array Template arrayobject Current theme objectarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 3226 行

wpfd_category_tree_click_scroll_up

该筛选器允许在点击类别树时自动滚动到元素顶部。

参数 :

boolean

Return :

boolean

文件内容:

app/functions.php 第 2346 行app/site/themes/templates/wpfd-theme.class.php 第 576 行

wpfd_category_tree_click_scroll_up

该筛选器允许在点击类别树时自动滚动到元素顶部。

参数 :

boolean

Return :

boolean

文件内容:

app/functions.php 第 2346 行app/site/themes/templates/wpfd-theme.class.php 第 576 行

wpfd_category_tree_expanded

筛选器允许在前端展开类别树。

参数 :

boolean

Return :

boolean

文件内容:

app/functions.php 第 2328 行app/site/themes/templates/wpfd-theme.class.php 第 558 行

wpfd_category_tree_expanded

筛选器允许在前端展开类别树。

参数 :

boolean

Return :

boolean

文件内容:

app/functions.php 第 2328 行app/site/themes/templates/wpfd-theme.class.php 第 558 行

wpfd_category_tree_parent_expanded

筛选器允许在前端展开类别树父级。

参数 :

boolean

Return :

boolean

文件内容:

app/functions.php 第 2337 行app/site/themes/templates/wpfd-theme.class.php 第 567 行

wpfd_category_tree_parent_expanded

筛选器允许在前端展开类别树父级。

参数 :

boolean

Return :

boolean

文件内容:

app/functions.php 第 2337 行app/site/themes/templates/wpfd-theme.class.php 第 567 行

wpfd_check_special_char_editing

编辑时筛选特殊字符

参数 :

boolean

Return :

void

文件内容:

app/admin/init.php 第 689 行

wpfd_clean_interval

过滤器用于更改清理垃圾的时间,这将覆盖 WPFD_CLEAN_INTERVAL 常量。

参数 :

$interval Time in second

Return :

void

文件内容:

app/functions.php 第 1911 行

wpfd_custom_zip_folder_on_server

用于自定义下载加载 zip 文件夹的过滤器

参数 :

boolean

Return :

void

文件内容:

app/site/controllers/files.php 第 67 行

wpfd_default_category_params

过滤器允许为新类别设置默认参数

参数 :

array Default values: order, orderby, roles, private

Return :

array

文件内容:

app/site/models/categoryfront.php 第 96 行app/site/models/categoriesfront.php 第 565 行app/admin/models/category.php 第 477 行

wpfd_default_category_visibility

过滤器允许设置默认可见性

参数 :

array Default values: roles, private

Return :

array

文件内容:

app/functions.php 第 2784 行

wpfd_file_download_button_args

全局过滤器,用于更改下载按钮的 HTML 代码和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2417 行

wpfd_file_download_button_handlebars_args

全局过滤器,用于更改下载按钮 Handlebars 的 HTML 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2343 行

wpfd_file_info

前面的过滤器文件信息

参数 :

object File object

Return :

object

文件内容:

app/site/models/filefront.php 第 583 行app/site/models/filefront.php 第 659 行app/site/models/filesfront.php 第 660 行

wpfd_file_info_created_args

全局过滤器用于更改已创建文件的 HTML 和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1688 行

wpfd_file_info_created_handlebars_args

全局过滤器,用于更改已创建的 Handlebars 的 HTML 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1637 行

wpfd_file_info_custom_fields_args

全局过滤器,用于更改自定义字段的 HTML 和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1855 行

wpfd_file_info_custom_fields_handlebars_args

Handlebars 自定义字段的 HTML 和参数的全局过滤器

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1903 行

wpfd_file_info_description_args

全局过滤器,用于更改描述的 HTML 和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1232 行

wpfd_file_info_description_handlebars_args

全局过滤器,用于更改描述 Handlebars 的 html 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1183 行

wpfd_file_info_hits_args

全局过滤器,用于更改命中结果的 HTML 和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1588 行

wpfd_file_info_hits_handlebars_args

全局过滤器,用于更改命中 Handlebars 的 html 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1537 行

wpfd_file_info_icon_html

全局筛选器更改图标 HTML

参数 :

string Output html for handlebars templateobject Current file objectarray Main configarray Current category config

Return :

string

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2014 行

wpfd_file_info_modified_args

全局过滤器用于更改已修改页面的 HTML 和参数。

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1790 行

wpfd_file_info_modified_handlebars_args

全局过滤器,用于更改修改后的 Handlebars 的 HTML 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1737 行

wpfd_file_info_size_args

全局过滤器用于更改 HTML 和参数大小

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1488 行

wpfd_file_info_size_handlebars_args

全局过滤器,用于更改 Handlebars 尺寸的 html 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1437 行

wpfd_file_info_title_args

全局过滤器,用于更改标题的 HTML 和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2242 行

wpfd_file_info_title_handlebars_args

全局过滤器,用于更改标题栏的 HTML 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2116 行

wpfd_file_info_version_args

全局过滤器用于更改版本的 html 和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1387 行

wpfd_file_info_version_handlebars_args

全局过滤器,用于更改 Handlebars 版本中的 HTML 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1334 行

wpfd_file_large_size_custom_icon

筛选选择大尺寸文件自定义图标

参数 :

boolean

Return :

void

文件内容:

app/admin/init.php 第 596 行

wpfd_file_marker_days

筛选更改文件标记时间延迟

参数 :

array The list of days

Return :

array

文件内容:

app/admin/forms/fields_v2/Filemarker.php 第 104 行

wpfd_file_marker_life_time

过期时间筛选

参数 :

integer Expired time

Return :

void

文件内容:

app/functions.php 第 4709 行app/functions.php 第 4770 行app/functions.php 第 4812 行

wpfd_file_marker_life_time

过期时间筛选

参数 :

integer Expired time

Return :

void

文件内容:

app/functions.php 第 4709 行app/functions.php 第 4770 行app/functions.php 第 4812 行

wpfd_file_marker_life_time

过期时间筛选

参数 :

integer Expired time

Return :

void

文件内容:

app/functions.php 第 4709 行app/functions.php 第 4770 行app/functions.php 第 4812 行

wpfd_file_open_pdf_button_args

全局过滤器,用于更改打开 PDF 按钮的 HTML 代码和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2637 行

wpfd_file_open_pdf_button_handlebars_args

全局过滤器,用于更改打开 PDF 按钮手柄的 HTML 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2500 行

wpfd_file_params

在加载到字段之前筛选更新数据

参数 :

array Data load to fields

Return :

array

文件内容:

app/admin/views/file/view.php 第 152 行

wpfd_file_preview_button_args

全局过滤器用于更改预览按钮的 HTML 和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2688 行

wpfd_file_preview_button_handlebars_args

全局过滤器,用于更改预览按钮手柄的 HTML 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2546 行

wpfd_file_replace_download_with_preview

过滤器允许在禁用下载弹窗时更改文件下载链接

参数 :

boolean

Return :

void

文件内容:

app/site/themes/wpfd-ggd/theme.php 第 185 行app/site/themes/wpfd-ggd/theme.php 第 270 行app/site/themes/wpfd-preview/theme.php 第 223 行app/site/themes/wpfd-preview/theme.php 第 310 行app/site/themes/wpfd-tree/tpl.php 第 20 行

wpfd_file_title

筛选更改文件标题

参数 :

string File titleinteger File id

Return :

string

文件内容:

app/site/models/filefront.php 第 125 行app/site/models/filefront.php 第 624 行app/site/models/filefront.php 第 465 行app/site/models/filesfront.php 第 241 行app/site/models/filesfront.php 第 404 行

wpfd_file_title_open_file_in_new_tab

筛选器允许在点击文件标题时在新标签页中打开文件。

参数 :

boolean

Return :

boolean

文件内容:

app/functions.php 第 2355 行app/site/themes/templates/wpfd-theme.class.php 第 585 行

wpfd_file_title_open_file_in_new_tab

筛选器允许在点击文件标题时在新标签页中打开文件。

参数 :

boolean

Return :

boolean

文件内容:

app/functions.php 第 2355 行app/site/themes/templates/wpfd-theme.class.php 第 585 行

wpfd_force_generate_FTP_file_preview

筛选器以强制预览和生成缩略图

参数 :

none

Return :

boolean

文件内容:

app/admin/controllers/config.php 第 2051 行

wpfd_generate_preview_page_number

生成预览图像时的最大页数

参数 :

integer

Return :

void

文件内容:

app/admin/models/generatepreview.php 第 415 行app/admin/models/generatepreview.php 第 753 行

wpfd_generate_preview_queue_interval

筛选器用于更改生成预览间隔,这将覆盖 WPFD_GENERATE_PREVIEW_QUEUE_INTERVAL 常量。

参数 :

$interval Time in second

Return :

void

文件内容:

app/functions.php 第 2737 行

wpfd_generate_preview_url

筛选以生成预览 URL

参数 :

boolean Generate preview urlstring File idstring Category idstring Token

Return :

boolean

文件内容:

app/site/helpers/WpfdHelperFile.php 第 217 行

wpfd_generate_single_template

WP File Download 单个模板

参数 :

none

Return :

void

文件内容:

app/site/themes/wpfd-single.php 第 10 行

wpfd_generated_preview_file_real_path

过滤器允许对生成的预览文件执行任何操作

参数 :

string

Return :

void

文件内容:

app/admin/models/generatepreview.php 第 885 行

wpfd_get_content_dir

用于更改自定义内容目录的过滤器。默认值:'wp-file-download'

参数 :

string The current custom content dir string.

Return :

boolean

文件内容:

app/functions.php 第 86 行

wpfd_get_support_cloud

筛选返回支持的云平台。需要检测类别/文件来自何处。

参数 :

array Cloud platform list

Return :

array

文件内容:

app/functions.php 第 1018 行

wpfd_get_template

允许第三方插件过滤器

参数 :

string Template pathstring Template namearray Template variablesstring Template path dirstring Default path dir

Return :

string

文件内容:

app/functions.php 第 869 行

wpfd_html_request_method

筛选更改请求方法

参数 :

boolean

Return :

void

文件内容:

app/admin/helpers/WpfdHelperFolder.php 第 469 行

wpfd_index_file

筛选器,用于在索引上添加文件内容

参数 :

array ChunksWP_Post Post object

Return :

void

文件内容:

app/admin/models/fts.php 第 1174 行

wpfd_locate_template

筛选返回找到的模板路径

参数 :

string Template pathstring Template namestring Template path dir

Return :

void

文件内容:

app/functions.php 第 831 行

wpfd_locate_theme

筛选返回找到的模板路径

参数 :

string Template pathstring Template namestring Template path dir

Return :

void

文件内容:

app/functions.php 第 956 行

wpfd_not_authorized_redirect_url

当用户无权预览当前文件时,筛选并重定向用户

参数 :

string

Return :

void

文件内容:

app/site/controllers/file.php 第 84 行app/site/controllers/file.php 第 290 行

wpfd_not_authorized_redirect_url

当用户无权下载当前文件时,筛选并重定向用户

参数 :

string

Return :

void

文件内容:

app/site/controllers/file.php 第 84 行app/site/controllers/file.php 第 290 行

wpfd_password_expires

筛选密码验证 cookie 的有效期。默认情况下,cookie 自创建之日起 10 天后过期。要将其转换为会话 cookie,请返回 0。.

参数 :

int $expires The expiry time, as passed to setcookie().

Return :

void

文件内容:

app/site/controllers/file.php 第 1411 行

wpfd_password_form

过滤受保护的 POST 密码表单的 HTML 输出。如果修改密码字段,请注意,无论表单输入中的 size 属性值如何,核心数据库架构都将密码字段限制为 20 个字符。.

参数 :

string $output The password form HTML output.WP_Post $object Object.

Return :

void

文件内容:

app/functions.php 第 3611 行

wpfd_preview_files_dir

筛选以更改预览文档目录

参数 :

string

Return :

void

文件内容:

app/admin/classes/WpfdBase.php 第 148 行

wpfd_preview_service_url

筛选以更改预览服务 URL

参数 :

string Preview url with %s placeholder for url

Return :

string

文件内容:

app/site/helpers/WpfdHelperFile.php 第 235 行

wpfd_preview_url

筛选以更改预览网址

参数 :

string Output urlstring Preview url with %s placeholder for file encoded urlstring Ajax Url to preview file

Return :

string

文件内容:

app/site/helpers/WpfdHelperFile.php 第 246 行

wpfd_real_abs_path

过滤器用于修复某些主机/服务器上的错误 ABSPATH

参数 :

string

Return :

void

文件内容:

app/functions.php 第 1159 行

wpfd_remove_download_zip_file_from_server

用于从服务器删除 zip 文件的过滤器

参数 :

boolean

Return :

void

文件内容:

app/site/controllers/files.php 第 114 行

wpfd_remove_expired_preview_file_time

筛选器用于设置删除过期预览文件的默认时间

参数 :

integer|mixed

Return :

void

文件内容:

app/admin/init.php 第 1444 行

wpfd_request_ssl_verify

启用 SSL 验证的过滤器

参数 :

boolean

Return :

void

文件内容:

app/admin/helpers/WpfdHelperFolder.php 第 476 行

wpfd_search_login_required

筛选检查登录信息以查找文件

参数 :

none

Return :

boolean

文件内容:

app/site/helpers/WpfdHelperShortcodes.php 第 2372 行

wpfd_search_results

搜索结果筛选器

参数 :

array Files resultsarray Search filters

Return :

array

文件内容:

app/site/models/search.php 第 631 行

wpfd_search_results_file_title_length

允许更改搜索结果中的文件长度

参数 :

integer

Return :

void

文件内容:

app/site/models/search.php 第 974 行

wpfd_search_results_order

搜索结果排序方向

参数 :

string

Return :

void

文件内容:

app/site/models/search.php 第 275 行

wpfd_search_results_orderby

搜索结果排序方式

参数 :

string

Return :

void

文件内容:

app/site/models/search.php 第 268 行

wpfd_search_results_orderby_relevance

根据关键词相关性筛选文件并进行排序。.

参数 :

boolean

Return :

boolean

文件内容:

app/site/views/search/view.php 第 285 行

wpfd_search_tags_relation

过滤器允许更改标签之间的关系

参数 :

string

Return :

void

文件内容:

app/site/models/search.php 第 156 行app/admin/models/files.php 第 449 行

wpfd_search_tags_relation

过滤器允许更改标签之间的关系

参数 :

string

Return :

void

文件内容:

app/site/models/search.php 第 156 行app/admin/models/files.php 第 449 行

wpfd_selected_file

筛选出要下载的文件

参数 :

array

Return :

void

文件内容:

app/site/controllers/files.php 第 456 行app/site/controllers/files.php 第 734 行

wpfd_selected_file

筛选出要下载的文件

参数 :

array

Return :

void

文件内容:

app/site/controllers/files.php 第 456 行app/site/controllers/files.php 第 734 行

wpfd_selected_files

筛选已选定要下载的文件

参数 :

array

Return :

void

文件内容:

app/site/controllers/files.php 第 107 行

wpfd_show_upload_form_reverse

筛选以更改上传表单

参数 :

boolean

Return :

void

文件内容:

app/site/views/files/view.php 第 491 行app/site/themes/wpfd-ggd/tpl.php 第 282 行app/site/themes/wpfd-preview/tpl.php 第 285 行app/site/themes/wpfd-default/tpl.php 第 306 行app/site/themes/wpfd-table/tpl.php 第 259 行app/site/themes/wpfd-tree/tpl.php 第 320 行

wpfd_statistics_filter_by

统计筛选器

参数 :

array

Return :

void

文件内容:

app/admin/views/statistics/tpl/filters.php 第 41 行

wpfd_statistics_filter_by_placeholders

按占位符筛选统计信息

参数 :

array

Return :

void

文件内容:

app/admin/views/statistics/tpl/filters.php 第 48 行

wpfd_statistics_get_selection_arguments

统计信息获取选择值参数

参数 :

array string string

Return :

void

文件内容:

app/admin/models/statistics.php 第 194 行

wpfd_statistics_get_selection_posts_clauses

统计数据获取选择帖子条款

参数 :

array string string

Return :

void

文件内容:

app/admin/models/statistics.php 第 378 行

wpfd_statistics_get_selection_value

统计结果获取选择值

参数 :

array string

Return :

void

文件内容:

app/admin/models/statistics.php 第 121 行

wpfd_statistics_type

更改统计类型

参数 :

string string string

Return :

void

文件内容:

app/admin/models/statistics.php 第 387 行

wpfd_token_live_time

筛选更改令牌有效期

参数 :

int Token live time in seconds

Return :

int

文件内容:

app/functions.php 第 1889 行app/site/models/tokens.php 第 123 行app/site/models/tokens.php 第 170 行

wpfd_trash_days

筛选器以更改垃圾箱文件夹的日期

参数 :

array The list of days

Return :

array

文件内容:

app/admin/forms/fields_v2/Trash.php 第 104 行

wpfd_upload_dir

过滤器允许更改文件上传目录

参数 :

string

Return :

void

文件内容:

app/admin/classes/WpfdBase.php 第 113 行

wpfd_user_can

检查当前用户是否具备编辑权限设置的能力

参数 :

boolean The current user has the given capabilitystring Action name

Return :

boolean

文件内容:

app/functions.php 第 1198 行app/functions.php 第 1215 行app/functions.php 第 1259 行app/functions.php 第 1279 行app/functions.php 第 1299 行app/functions.php 第 1319 行app/functions.php 第 1369 行app/functions.php 第 1419 行app/admin/classes/install-wizard/install-wizard.php 第 59 行jutranslation/jutranslation.php 第 100 行

wpfd_user_can

检查当前用户管理文件的能力

参数 :

boolean The current user has the given capabilitystring Action name

Return :

boolean

文件内容:

app/functions.php 第 1198 行app/functions.php 第 1215 行app/functions.php 第 1259 行app/functions.php 第 1279 行app/functions.php 第 1299 行app/functions.php 第 1319 行app/functions.php 第 1369 行app/functions.php 第 1419 行app/admin/classes/install-wizard/install-wizard.php 第 59 行jutranslation/jutranslation.php 第 100 行

wpfd_wc_validate_required_fields

筛选以验证必填字段

参数 :

boolean

Return :

void

文件内容:

app/admin/init.php 第 696 行

wpfd_wpml_download_language

用于自定义下载语言的筛选器

参数 :

boolean

Return :

void

文件内容:

app/site/models/filefront.php 第 533 行app/site/models/filesfront.php 第 338 行

wpfd_wpml_download_language

用于自定义下载语言的筛选器

参数 :

boolean

Return :

void

文件内容:

app/site/models/filefront.php 第 533 行app/site/models/filesfront.php 第 338 行

wpfd_you_dont_have_permission_redirect_url

筛选器,当用户没有下载当前文件的权限时重定向用户

参数 :

string

Return :

void

文件内容:

app/site/controllers/file.php 第 269 行

wpfd_{$themeName}_back_button_handlebars

筛选器用于更改返回按钮手柄的 HTML 和参数

参数 :

array Template arrayobject Current theme objectarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2799 行

wpfd_{$themeName}_category_description

筛选以更改类别描述的 HTML 和参数

参数 :

array Template arrayobject Current theme objectarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 3002 行app/site/themes/templates/wpfd-theme.class.php 第 3015 行

wpfd_{$themeName}_category_description

全局筛选器,用于更改类别描述的 HTML 和参数

参数 :

array Template arrayobject Current theme objectarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 3002 行app/site/themes/templates/wpfd-theme.class.php 第 3015 行

wpfd_{$themeName}_category_description_handlebars

筛选器以更改类别描述 Handlebars 的 html 和参数

参数 :

array Template arrayobject Current theme objectarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2968 行

wpfd_{$themeName}_category_item

全局筛选器,用于更改类别项的 HTML 和参数

参数 :

array Template arrayobject Current category objectobject Current theme objectarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 3168 行app/site/themes/templates/wpfd-theme.class.php 第 3182 行

wpfd_{$themeName}_category_item

筛选以更改类别项的 HTML 和参数

参数 :

array Template arrayobject Current category objectobject Current theme objectarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 3168 行app/site/themes/templates/wpfd-theme.class.php 第 3182 行

wpfd_{$themeName}_category_item_handlebars

筛选器用于更改类别项句柄的 HTML 和参数

参数 :

array Template arrayobject Current theme objectarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 3076 行

wpfd_{$themeName}_category_title

筛选器,用于更改类别标题的 HTML 和参数

参数 :

array Template arrayobject Current theme objectarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2921 行

wpfd_{$themeName}_category_title_handlebars

筛选器用于更改类别标题 Handlebars 的 html 和参数

参数 :

array Template arrayobject Current theme objectarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2854 行

wpfd_{$themeName}_category_tree

筛选器用于更改类别树的 HTML 和参数

参数 :

array Template arrayobject Current theme objectarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 3239 行

wpfd_{$themeName}_column_created_header_html

筛选器用于更改创建日期列的 HTML 标题

参数 :

string Header html

Return :

string

文件内容:

app/site/themes/wpfd-table/theme.php 第 1100 行

wpfd_{$themeName}_column_custom_fields_header_html

筛选器用于更改自定义字段列的 HTML 标题

参数 :

string Header html

Return :

string

文件内容:

app/site/themes/wpfd-table/theme.php 第 1173 行

wpfd_{$themeName}_column_description_header_html

筛选器用于更改描述列的 HTML 标题

参数 :

string Header html

Return :

string

文件内容:

app/site/themes/wpfd-table/theme.php 第 915 行app/site/themes/wpfd-table/theme.php 第 949 行app/site/themes/wpfd-table/theme.php 第 1303 行

wpfd_{$themeName}_column_description_header_html

筛选器用于更改描述列的 HTML 标题

参数 :

string Header html

Return :

string

文件内容:

app/site/themes/wpfd-table/theme.php 第 915 行app/site/themes/wpfd-table/theme.php 第 949 行app/site/themes/wpfd-table/theme.php 第 1303 行

wpfd_{$themeName}_column_description_header_html

筛选器用于更改描述列的 HTML 标题

参数 :

string Header html

Return :

string

文件内容:

app/site/themes/wpfd-table/theme.php 第 915 行app/site/themes/wpfd-table/theme.php 第 949 行app/site/themes/wpfd-table/theme.php 第 1303 行

wpfd_{$themeName}_column_download_header_html

筛选器用于更改下载列的 HTML 标题

参数 :

string Header html

Return :

string

文件内容:

app/site/themes/wpfd-table/theme.php 第 1212 行

wpfd_{$themeName}_column_hits_header_html

筛选器用于更改点击量列的 HTML 标题

参数 :

string Header html

Return :

string

文件内容:

app/site/themes/wpfd-table/theme.php 第 1063 行

wpfd_{$themeName}_column_media_menu_header_html

筛选器用于更改媒体菜单列的 HTML 标题

参数 :

string Header html

Return :

string

文件内容:

app/site/themes/wpfd-table/theme.php 第 1246 行

wpfd_{$themeName}_column_modified_header_html

筛选器用于更改修改日期列的 HTML 标题

参数 :

string Header html

Return :

string

文件内容:

app/site/themes/wpfd-table/theme.php 第 1138 行

wpfd_{$themeName}_column_size_header_html

筛选器,用于更改大小列的 HTML 标题

参数 :

string Header html

Return :

string

文件内容:

app/site/themes/wpfd-table/theme.php 第 1025 行

wpfd_{$themeName}_column_title_header_html

筛选器用于更改标题列的 HTML 标题

参数 :

string Header html

Return :

string

文件内容:

app/site/themes/wpfd-table/theme.php 第 877 行

wpfd_{$themeName}_column_version_header_html

筛选器用于更改版本列的 HTML 标题

参数 :

string Header html

Return :

string

文件内容:

app/site/themes/wpfd-table/theme.php 第 987 行

wpfd_{$themeName}_content_wrapper

筛选以更改内容包装器输出

参数 :

string Content wrapperobject Current theme object

Return :

string

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 901 行

wpfd_{$themeName}_content_wrapper_input

过滤器用于打印内容包装器下方的隐藏输入

参数 :

string Input htmlobject Current theme object

Return :

string

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 928 行

wpfd_{$themeName}_file_download_button_args

筛选器用于更改下载按钮的 HTML 代码和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2431 行

wpfd_{$themeName}_file_download_button_handlebars_args

过滤器用于更改下载按钮 Handlebars 的 HTML 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2356 行

wpfd_{$themeName}_file_info_created_args

筛选以更改已创建文件的 HTML 和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1701 行

wpfd_{$themeName}_file_info_created_handlebars_args

筛选器用于更改已创建的 Handlebars 的 HTML 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1650 行

wpfd_{$themeName}_file_info_custom_fields_args

筛选器用于更改自定义字段的 HTML 和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1869 行

wpfd_{$themeName}_file_info_custom_fields_handlebars_args

过滤器用于更改 Handlebars 自定义字段的 HTML 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1916 行

wpfd_{$themeName}_file_info_description_args

筛选以更改描述的 HTML 和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1245 行

wpfd_{$themeName}_file_info_description_handlebars_args

过滤器用于更改描述 Handlebars 的 html 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1195 行

wpfd_{$themeName}_file_info_hits_args

筛选以更改命中结果的 HTML 和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1601 行

wpfd_{$themeName}_file_info_hits_handlebars_args

过滤器用于更改命中 Handlebars 的 html 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1550 行

wpfd_{$themeName}_file_info_icon_hanlebars

用于更改 Handlebars 模板图标 HTML 的过滤器

参数 :

string Output html for handlebars templatearray Main configarray Current category config

Return :

string

文件内容:

app/site/themes/wpfd-preview/theme.php 第 175 行app/site/themes/wpfd-table/theme.php 第 319 行app/site/themes/templates/wpfd-theme.class.php 第 1957 行app/site/themes/templates/wpfd-theme.class.php 第 1970 行

wpfd_{$themeName}_file_info_icon_hanlebars

用于更改 Handlebars 模板图标 HTML 的过滤器

参数 :

string Output html for handlebars templatearray Main configarray Current category config

Return :

string

文件内容:

app/site/themes/wpfd-preview/theme.php 第 175 行app/site/themes/wpfd-table/theme.php 第 319 行app/site/themes/templates/wpfd-theme.class.php 第 1957 行app/site/themes/templates/wpfd-theme.class.php 第 1970 行

wpfd_{$themeName}_file_info_icon_html

筛选更改图标的 HTML

参数 :

string Output html for handlebars templateobject Current file objectarray Main configarray Current category config

Return :

string

文件内容:

app/site/themes/wpfd-table/theme.php 第 438 行app/site/themes/templates/wpfd-theme.class.php 第 2028 行

wpfd_{$themeName}_file_info_modified_args

筛选以更改修改后的 HTML 和参数。

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1804 行

wpfd_{$themeName}_file_info_modified_handlebars_args

过滤器用于更改修改后的 Handlebars 的 HTML 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1750 行

wpfd_{$themeName}_file_info_size_args

筛选器用于更改 HTML 和大小参数。

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1501 行

wpfd_{$themeName}_file_info_size_handlebars_args

过滤器用于更改 html 和 Handlebars 尺寸的参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1449 行

wpfd_{$themeName}_file_info_title_args

筛选以更改标题的 HTML 和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/wpfd-table/theme.php 第 504 行app/site/themes/templates/wpfd-theme.class.php 第 2256 行

wpfd_{$themeName}_file_info_title_handlebars_args

过滤器用于更改标题栏的 html 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/wpfd-table/theme.php 第 380 行app/site/themes/templates/wpfd-theme.class.php 第 2129 行

wpfd_{$themeName}_file_info_version_args

筛选更改版本的 HTML 和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1400 行

wpfd_{$themeName}_file_info_version_handlebars_args

过滤器用于更改 Handlebars 版本的 HTML 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 1346 行

wpfd_{$themeName}_file_open_pdf_button_args

筛选器用于更改打开 PDF 按钮的 HTML 代码和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2651 行

wpfd_{$themeName}_file_open_pdf_button_handlebars_args

筛选器用于更改打开 PDF 按钮手柄的 HTML 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2513 行

wpfd_{$themeName}_file_preview_button_args

筛选器用于更改预览按钮的 HTML 和参数

参数 :

array Template arrayobject Current file objectarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2702 行

wpfd_{$themeName}_file_preview_button_handlebars_args

筛选器用于更改预览按钮手柄的 HTML 和参数

参数 :

array Template arrayarray Main configarray Current category config

Return :

array

文件内容:

app/site/themes/templates/wpfd-theme.class.php 第 2559 行

Composer

作曲家标志 以下是如何将我们的插件作为 Composer 依赖项使用的方法。您需要在 composer.json 文件中声明 Joomunited 仓库,请务必将 URL 中的 YOUR_TOKEN 替换为您自己的令牌。您可以在 https://www.joomunited.com/my-account/my-membership 的 中 Composer 。 {    "repositories":[       {          "type":"package",          "package":{             "name":"joomunited/wp-file-download",             "version":"master",             "type":"wordpress-plugin",             "dist":{                "type":"zip",                "url":"https://www.joomunited.com/extra/download/wp-file-download/YOUR_TOKEN",                "reference":"master"             }          }       }    ],    "require":{       "composer/installers":"~1.0",       "joomunited/wp-file-download":"dev-master"    } }

使用 WP CLI 以编程方式设置更新密钥

使用与 Composer 安装时相同的密钥,并执行此 Composer 命令来设置更新令牌。 wp option update ju_user_token "YOUR_TOKEN"