wordpress钩子

activate_{$plugin}

do_action( "activate_{$plugin}", bool $network_wide )动作钩子::当一个特定的插件被激活时触发。Action Hook: Fires as a specific plugin is being activated.目录锚点:#说明#参数#源码说明(Description)这个钩子是register_activation_hook()内部使用的“activation”钩子。钩子名$plugin的动态部分引用了plugin basename。参数(Param...

日期:2020-07-26 13:19:03 浏览:858

activate_blog

do_action( 'activate_blog', string $id )动作钩子::在网络站点激活后激发。Action Hook: Fires after a network site is activated.目录锚点:#参数#源码参数(Parameters)参数类型说明 $id (string) 激活站点的ID。 源码(Source)更新版本源码位置使用被使用MU (3.0.0) w...

日期:2020-07-26 13:19:03 浏览:758

activate_header

do_action( 'activate_header' )操作挂钩:在加载网站激活页之前激发。Action Hook: Fires before the Site Activation page is loaded.目录锚点:#源码#笔记源码(Source)更新版本源码位置使用被使用3.0.0 wp-activate.php:7900笔记(Notes)在wp中定义了activate_header hook-激活.php包含主题的文件header.php文件但不是函数.php文件。因此,如果在主题的函数.p...

日期:2020-07-26 13:19:04 浏览:704

activate_wp_head

do_action( 'activate_wp_head' )操作挂钩:在加载网站激活页之前激发。Action Hook: Fires before the Site Activation page is loaded.目录锚点:#说明#源码说明(Description)对“wp_head”动作开火。源码(Source)更新版本源码位置使用被使用3.0.0 wp-activate.php:9610...

日期:2020-07-26 13:19:04 浏览:907

activated_plugin

do_action( 'activated_plugin', string $plugin, bool $network_wide )动作钩子::插件激活后激发。Action Hook: Fires after a plugin has been activated.目录锚点:#说明#参数#源码#笔记说明(Description)如果插件被静默激活(例如在更新期间),则不会触发此挂钩。参数(Parameters)参数类型说明 $plugin ...

日期:2020-07-26 13:19:04 浏览:505

activity_box_end

do_action( 'activity_box_end' )动作钩子::在“一目了然”仪表板小部件的末尾触发。Action Hook: Fires at the end of the ‘At a Glance’ dashboard widget.目录锚点:#说明#源码说明(Description)在3.8.0之前,小部件被命名为“立即”。源码(Source)更新版本源码位置使用被使用2.0.0 wp-admin/includes/dashboard.php:40110...

日期:2020-07-26 13:19:04 浏览:480

add_{$meta_type}_meta

do_action( "add_{$meta_type}_meta", int $object_id, string $meta_key, mixed $_meta_value )动作钩子::在添加特定类型的元之前立即触发。Action Hook: Fires immediately before meta of a specific type is added.目录锚点:#说明#参数#源码说明(Description)钩子的动态部分,$meta_type,是指元对象类型(comment、post、t...

日期:2020-07-26 13:19:05 浏览:466

add_{$meta_type}_metadata

apply_filters( "add_{$meta_type}_metadata", null|bool $check, int $object_id, string $meta_key, mixed $meta_value, bool $unique )筛选挂钩:筛选是否添加特定类型的元数据。Filter Hook: Filters whether to add metadata of a specific type.目录锚点:#说明#参数#源码说明(Description)钩子的动态部分,$...

日期:2020-07-26 13:19:05 浏览:773

add_admin_bar_menus

do_action( 'add_admin_bar_menus' )动作钩子::菜单添加到菜单栏后触发。Action Hook: Fires after menus are added to the menu bar.目录锚点:#源码源码(Source)更新版本源码位置使用被使用3.1.0 wp-includes/class-wp-admin-bar.php:63810...

日期:2020-07-26 13:19:05 浏览:839

add_attachment

do_action( 'add_attachment', int $post_ID )动作钩子::添加附件后触发。Action Hook: Fires once an attachment has been added.目录锚点:#参数#源码参数(Parameters)参数类型说明 $post_ID (int) 附件ID。 源码(Source)更新版本源码位置使用被使用2.0.0 wp-incl...

日期:2020-07-26 13:19:05 浏览:945

add_category_form_pre

do_action_deprecated( 'add_category_form_pre', object $arg )动作钩子:(不推荐):在添加类别窗体之前激发。Action Hook (deprecated): Fires before the Add Category form.目录锚点:#参数#源码参数(Parameters)参数类型说明 $arg (object) 转换为对象的参数。 ...

日期:2020-07-26 13:19:05 浏览:747

add_inline_data

do_action( 'add_inline_data', WP_Post $post, WP_Post_Type $post_type_object )动作钩子::在输出posts和pages的内联编辑器的字段后激发。Action Hook: Fires after outputting the fields for the inline editor for posts and pages.目录锚点:#参数#源码参数(Parameters)参数类型说明 ...

日期:2020-07-26 13:19:06 浏览:494

add_link

do_action( 'add_link', int $link_id )操作挂钩:在链接添加到数据库后激发。Action Hook: Fires after a link was added to the database.目录锚点:#参数#源码参数(Parameters)参数类型说明 $link_id (int) 添加的链接的ID。 源码(Source)更新版本源码位置使用被使用2.0.0 ...

日期:2020-07-26 13:19:06 浏览:752

add_link_category_form_pre

do_action_deprecated( 'add_link_category_form_pre', object $arg )动作钩子:(不推荐):在链接类别窗体之前激发。Action Hook (deprecated): Fires before the link category form.目录锚点:#参数#源码参数(Parameters)参数类型说明 $arg (object) 转换为对象的参数。 ...

日期:2020-07-26 13:19:06 浏览:876

add_menu_classes

apply_filters( 'add_menu_classes', array $menu )过滤器::过滤器管理菜单数组,其中为顶级项添加了类。Filter Hook: Filters administration menus array with classes added for top-level items.目录锚点:#参数#源码参数(Parameters)参数类型说明 $menu (array) 管理菜...

日期:2020-07-26 13:19:06 浏览:588

add_meta_boxes

do_action( 'add_meta_boxes', string $post_type, WP_Post $post )动作钩子::在添加了所有内置元框后触发。Action Hook: Fires after all built-in meta boxes have been added.目录锚点:#参数#源码#笔记参数(Parameters)参数类型说明 $post_type (string) 岗位类型。 ...

日期:2020-07-26 13:19:06 浏览:476

add_meta_boxes_{$post_type}

do_action( "add_meta_boxes_{$post_type}", WP_Post $post )动作钩子::在添加了所有内置元框之后,根据上下文为给定的post类型触发。Action Hook: Fires after all built-in meta boxes have been added, contextually for the given post type.目录锚点:#说明#参数#源码说明(Description)钩子的动态部分,$post_type,是指柱子的柱子类型。...

日期:2020-07-26 13:19:07 浏览:796

add_meta_boxes_comment

do_action( 'add_meta_boxes_comment', WP_Comment $comment )动作钩子::在添加特定于注释的元框时激发。Action Hook: Fires when comment-specific meta boxes are added.目录锚点:#参数#源码参数(Parameters)参数类型说明 $comment (WP_Comment) 注释对象。 ...

日期:2020-07-26 13:19:07 浏览:727

add_meta_boxes_link

do_action( 'add_meta_boxes_link', object $link )动作钩子::在添加链接特定的元框时激发。Action Hook: Fires when link-specific meta boxes are added.目录锚点:#参数#源码参数(Parameters)参数类型说明 $link (object) 链接对象。 源码(Source)更新版本源码位置使...

日期:2020-07-26 13:19:07 浏览:713

add_option

do_action( 'add_option', string $option, mixed $value )动作钩子::在添加选项之前触发。Action Hook: Fires before an option is added.目录锚点:#参数#源码参数(Parameters)参数类型说明 $option (string) 要添加的选项的名称。 ...

日期:2020-07-26 13:19:07 浏览:548

add_option_{$option}

do_action( "add_option_{$option}", string $option, mixed $value )动作钩子::在添加特定选项后激发。Action Hook: Fires after a specific option has been added.目录锚点:#说明#参数#源码说明(Description)钩子名$option的动态部分引用选项名。参数(Parameters)参数类型说明 $option (...

日期:2020-07-26 13:19:08 浏览:594

add_ping

apply_filters( 'add_ping', string $new )过滤器::过滤要为给定文章添加的新ping URL。Filter Hook: Filters the new ping URL to add for the given post.目录锚点:#参数#源码参数(Parameters)参数类型说明 $new (string) 要添加的新ping URL。 源码(Sourc...

日期:2020-07-26 13:19:08 浏览:554

add_signup_meta

apply_filters( 'add_signup_meta', array $meta )筛选挂钩:筛选新的默认站点元变量。Filter Hook: Filters the new default site meta variables.目录锚点:#源码源码(Source)更新版本源码位置使用被使用3.0.0 wp-signup.php:47430...

日期:2020-07-26 13:19:08 浏览:754

add_site_option

do_action( 'add_site_option', string $option, mixed $value, int $network_id )操作挂钩:在成功添加网络选项后激发。Action Hook: Fires after a network option has been successfully added.目录锚点:#参数#源码参数(Parameters)参数类型说明 $option (string) ...

日期:2020-07-26 13:19:08 浏览:796

add_site_option_{$option}

do_action( "add_site_option_{$option}", string $option, mixed $value, int $network_id )操作挂钩:在成功添加特定网络选项后激发。Action Hook: Fires after a specific network option has been successfully added.目录锚点:#说明#参数#源码说明(Description)钩子名$option的动态部分引用选项名。参数(Parameters)参数类...

日期:2020-07-26 13:19:08 浏览:540

add_tag_form

do_action_deprecated( 'add_tag_form', string $taxonomy )动作钩子:(不推荐):在添加标记表单的末尾激发。Action Hook (deprecated): Fires at the end of the Add Tag form.目录锚点:#参数#源码参数(Parameters)参数类型说明 $taxonomy (string) 分类蛞蝓。 ...

日期:2020-07-26 13:19:09 浏览:500

add_tag_form_fields

do_action( 'add_tag_form_fields', string $taxonomy )动作钩子::在非层次分类法的Add Tag form字段之后激发。Action Hook: Fires after the Add Tag form fields for non-hierarchical taxonomies.目录锚点:#参数#源码参数(Parameters)参数类型说明 $taxonomy (string) ...

日期:2020-07-26 13:19:09 浏览:699

add_tag_form_pre

do_action_deprecated( 'add_tag_form_pre', string $taxonomy )动作钩子:(不推荐):在添加标记窗体之前激发。Action Hook (deprecated): Fires before the Add Tag form.目录锚点:#参数#源码参数(Parameters)参数类型说明 $taxonomy (string) 分类蛞蝓。 源码(...

日期:2020-07-26 13:19:09 浏览:888

add_term_relationship

do_action( 'add_term_relationship', int $object_id, int $tt_id, string $taxonomy )动作钩子::在添加对象项关系之前立即激发。Action Hook: Fires immediately before an object-term relationship is added.目录锚点:#参数#源码参数(Parameters)参数类型说明 $object_id ...

日期:2020-07-26 13:19:09 浏览:583

add_trashed_suffix_to_trashed_posts

apply_filters( 'add_trashed_suffix_to_trashed_posts', bool $add_trashed_suffix, string $post_name, int $post_ID )过滤器::筛选是否向与更新的帖子名称匹配的垃圾帖子添加“垃圾”后缀。Filter Hook: Filters whether or not to add a `__trashed` suffix to trashed posts that match the name of th...

日期:2020-07-26 13:19:10 浏览:871