mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- updated docs;
This commit is contained in:
@@ -465,17 +465,20 @@ if ( ! class_exists( 'um\core\Shortcodes' ) ) {
|
||||
*
|
||||
* @since 2.8.2
|
||||
*
|
||||
* Example 1: [um_author_profile_link]
|
||||
* Example 2: [um_author_profile_link title="Go to profile" user_id="29"]
|
||||
* Example 1: [um_author_profile_link] current post author User Profile URL
|
||||
* Example 2: [um_author_profile_link title="User profile" user_id="29"]
|
||||
* Example 3: [um_author_profile_link title="User profile" user_id="29"]Visit Author Profile[/um_author_profile_link]
|
||||
* Example 4: [um_author_profile_link raw="1"] for result like http://localhost:8000/user/janedoe/
|
||||
*
|
||||
* @param array $attr {
|
||||
* Attributes of the shortcode.
|
||||
*
|
||||
* @type string class A link class.
|
||||
* @type string title A link text.
|
||||
* @type int user_id User ID. Author ID if empty.
|
||||
* @type bool raw Get raw URL or link layout. `false` by default.
|
||||
* @type string $class A link class.
|
||||
* @type string $title A link text.
|
||||
* @type int $user_id User ID. Author ID if empty.
|
||||
* @type bool $raw Get raw URL or link layout. `false` by default.
|
||||
* }
|
||||
* @param string $content
|
||||
* @return string Profile link HTML or profile link URL if the link text is empty.
|
||||
*/
|
||||
public function author_profile_link( $attr = array(), $content = '' ) {
|
||||
|
||||
@@ -172,6 +172,7 @@ IMPORTANT: PLEASE UPDATE THE PLUGIN TO AT LEAST VERSION 2.6.7 IMMEDIATELY. VERSI
|
||||
|
||||
- Added: The `data` protocol for embedding base64 encoded logos in emails
|
||||
- Added: Hook `um_access_restricted_post_instance` for filtering the restricted post instance
|
||||
- Added: Shortcode `[um_author_profile_link]` for getting user Profile URL
|
||||
- Updated: Using underscore.js native debounce method for resize handler
|
||||
- Updated: Texts spelling
|
||||
|
||||
|
||||
Reference in New Issue
Block a user