钩子文档

login_form_bottom

💡 云策文档标注

概述

login_form_bottom 是一个 WordPress 过滤器,用于在登录表单底部添加自定义内容。它位于表单关闭标签之前执行,允许开发者根据登录表单参数动态修改输出。

关键要点

  • 过滤器名称:login_form_bottom
  • 用途:在登录表单底部显示自定义内容
  • 参数:$content(字符串,默认空)和 $args(数组,登录表单参数)
  • 调用方式:apply_filters('login_form_bottom', '', $args)
  • 相关函数:wp_login_form()
  • 引入版本:WordPress 3.0.0

📄 原文内容

Filters content to display at the bottom of the login form.

Description

The filter evaluates just preceding the closing form tag element.

Parameters

$contentstring
Content to display. Default empty.
$argsarray
Array of login form arguments.

Source

$login_form_bottom = apply_filters( 'login_form_bottom', '', $args );

Changelog

Version Description
3.0.0 Introduced.