• Skip to primary navigation
  • Skip to main content

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Store
    • Cart
    • Checkout
  • Blog
    • Basics [Free]
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Contact
  • Sign In
  • Show Search
Hide Search
Home » Plugins » WP-Members » Documentation » Filter and Action Hooks » wpmem_tos_link_txt

wpmem_tos_link_txt

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

Ready to get started?

Join Today!

© 2021 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Refund Policy