• LifterLMS
  • Knowledge Base
  • Academy
  • Blog
  • Podcast
  • Contributors
  • My Account

LifterLMS LifterLMS

  • Code Reference
  • REST API
  • LLMS-CLI

Code Reference

Skip to content
Filter by type:
Search
Browse: Home / Code Reference / Classes / LLMS_Shortcode_User_Info / LLMS_Shortcode_User_Info::get_blocklist()

LLMS_Shortcode_User_Info::get_blocklist()

Retrieves a list of keys that cannot be displayed by the shortcode.

Contents

  • Return
  • Source
  • Related
    • Uses
    • Used By
  • Changelog
  • User Contributed Notes

Return #Return

(string[])


Top ↑

Source #Source

File: includes/shortcodes/class-llms-shortcode-user-info.php

	protected function get_blocklist() {

		/**
		 * Filters the list of keys which cannot be displayed using the [user] shortcode
		 *
		 * @since 5.0.0
		 *
		 * @param string[] $keys List of user and usermeta keys.
		 */
		return apply_filters( 'llms_user_info_shortcode_blocked_keys', array( 'user_pass' ) );

	}

Expand full source code Collapse full source code View on GitHub


Top ↑

Related #Related

Uses #Uses

Uses
Uses Description
includes/shortcodes/class-llms-shortcode-user-info.php: llms_user_info_shortcode_blocked_keys

Filters the list of keys which cannot be displayed using the [user] shortcode

Top ↑

Used By #Used By

Used By
Used By Description
includes/shortcodes/class-llms-shortcode-user-info.php: LLMS_Shortcode_User_Info::get_output()

Retrieve the actual content of the shortcode


Top ↑

Changelog #Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes #User Contributed Notes

You must log in before being able to contribute a note or feedback.

© 2014 - 2023 LifterLMS · Privacy Policy · Terms and Conditions

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.