- updated docs;

This commit is contained in:
Mykyta Synelnikov
2024-01-15 11:48:18 +02:00
parent bd151875c9
commit f049832b73
2 changed files with 10 additions and 6 deletions
+9 -6
View File
@@ -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 = '' ) {
+1
View File
@@ -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