API Category: Member Profile & Directory Hooks

arm_profile_content_after_fields_outside

Usage: add_filter(‘arm_profile_content_after_fields_outside’, ‘your_function’, 10, 3); function your_function($content = ”, $args = array(), $user= array()) { //$user Array of User with details. //$args Shortcode Argument. //$content content after user profile fields return $content; } Parameters: $content Content to display after user’s profile fields section. $args Array of arguments of profile template shortcode. $user array of user […]

Read More

arm_profile_content_before_fields_outside

Usage: add_filter(‘arm_profile_content_before_fields_outside’, ‘your_function’, 10, 3); function your_function($content = ”, $args = array(), $user= array()) { //$user Array of User with details. //$args Shortcode Argument. //$content content before user profile fields return $content; } Parameters: $content Content to display before user’s profile fields section. $args Array of arguments of profile template shortcode. $user array of user […]

Read More

arm_change_user_detail_before_display_in_profile_and_directory

Usage: add_filter(‘arm_change_user_detail_before_display_in_profile_and_directory’, ‘your_function’, 10, 2); function your_function($users, $args) { //$users Array of Users with details. //$args Shortcode Arguments. if ($args[‘type’] == ‘directory’) { //Filter Users Detail Array } return $users; } Parameters: $users Array of Users with details $args Shortcode Arguments

Read More

arm_change_profile_and_directory_settings

Usage: add_filter( ‘arm_change_profile_and_directory_settings’, ‘your_function’); function your_function($templates) { //$templates Array of default profile & directory templates. $templates[] = array( ‘title’ => __(‘Custom Profile Template’, MEMBERSHIP_TXTDOMAIN), ‘slug’ => ‘customprofiletemplate’, // Unique template slug. ‘type’ => ‘profile’, // Possible values: ‘profile’ or ‘directory’. ); return $templates; } Parameters: $templates Array of default profile & directory templates

Read More

arm_change_content_after_display_profile_and_directory

Usage: add_filter( ‘arm_change_content_after_display_profile_and_directory’, ‘your_function’, 10, 2); function your_function($content, $atts) { //$content Shortcode Content. //$atts Shortcode Arguments. $content = $content . ” Some Content “; return $content; } Parameters: $content Shortcode Content $atts Shortcode Arguments

Read More

arm_change_content_before_display_profile_and_directory

Usage: add_filter( ‘arm_change_content_before_display_profile_and_directory’, ‘your_function’, 10, 2); function your_function($content, $atts) { //$content Shortcode Content. //$atts Shortcode Arguments. $content = ” Some Content ” . $content; return $content; } Parameters: $content Shortcode Content $atts Shortcode Arguments

Read More
Welcome to ARMember
Fancy getting all offers and update notifications?
Subscribe
Give it a try, you can unsubscribe anytime.
Close