Description
This filter hook allows you to change the text that is displayed for the Terms of Service (TOS) link.
Parameters
$text
(string) (required) The text that is displayed for the Terms of Service link.
$toggle
(string) (optional) Indicates the form that is being displayed (new|edit).
Changelog
- Introduced in version 2.7.5
- Added $toggle in version 2.9.0
Source
wpmem_tos_link_txt is located in forms.php
Notes
The link is applied to the text with the php function sprintf() which is a function to return a formatted string. Use the conversion specification “%s” to indicate the beginning and end of the link. For example, in the string “be sure to read %s the tos %s”, “the tos” would be the actual hyperlink.
Usage
add_filter( 'wpmem_tos_link_txt', 'my_function' ); function my_function( $text ) { $text = 'Check to comply with the %s Terms of Service %s'; return $text; }
See a list of all filter and action hooks