API Category: General Setting Hooks

arm_after_common_messages_settings_html

Usage: add_action( ‘arm_after_common_messages_settings_html’, ‘your_function’ ); function your_function($common_messages) { echo “Your options HTML.”; } Parameters: $common_messages Array of Common Messages

Read More

arm_after_page_settings_html

Usage: add_action( ‘arm_after_page_settings_html’, ‘your_function’ ); function your_function($page_settings) { echo “Your options HTML.”; } Parameters: $page_settings Array of Page Settings

Read More

arm_after_global_settings_html

Usage: add_action( ‘arm_after_global_settings_html’, ‘your_function’ ); function your_function($general_settings) { echo “Your options HTML.”; } Parameters: $general_settings Array of General Settings

Read More

arm_before_global_settings_html

Usage: add_action( ‘arm_before_global_settings_html’, ‘your_function’ ); function your_function($general_settings) { echo “Your options HTML.”; } Parameters: $general_settings Array of general Settings

Read More

arm_available_currencies

Usage: add_filter( ‘arm_available_currencies’, ‘your_function’); function your_function($currencies) { //$currencies Array of currencies $currencies[‘USD’] = ‘$’; return $currencies; } Parameters: $currencies Array – Array of currencies

Read More

arm_change_email_content_with_user_detail

Usage: add_filter( ‘arm_change_email_content_with_user_detail’, ‘your_function’, 10, 2); function your_function($mailcontent, $user_id) { //$mailcontent Email Content. //$user_id User ID. $mailcontent = $mailcontent.” Extra Mail Content.”; return $mailcontent; } Parameters: $mailcontent Email Content $user_id User ID

Read More

arm_restrict_user_before_login

Usage: add_filter( ‘arm_restrict_user_before_login’, ‘your_function’); function your_function($blocked_ips) { //$blocked_ips Blocked IP Addresses. $blocked_ips[] = ‘255.255.255.1’; return $blocked_ips; } Parameters: $blocked_ips Array – Blocked IP Addresses

Read More

arm_change_user_avatar

Usage: add_filter( ‘arm_change_user_avatar’, ‘your_function’, 10, 5); function your_function($avatar, $id_or_email, $size, $default, $alt) { //Filter user avatar. if ($id_or_email == ’26’) { //pass your custom image url in src. $avatar = ”; } return $avatar; } Parameters: $avatar Whole img tag to be returned $id_or_email user id or email address $size Image height and width $default […]

Read More

arm_get_all_common_message_settings

Usage: add_filter( ‘arm_get_all_common_message_settings’, ‘your_function’); function your_function($common_messages = array()) { //$common_messages Array of common messages. $common_messages[‘some_option’] = “Some Message”; return $common_messages; } Parameters: $common_messages Array – Array of common messages

Read More

arm_get_all_block_settings

Usage: add_filter( ‘arm_get_all_block_settings’, ‘your_function’); function your_function($all_block_settings = array()) { //$all_block_settings All Security Settings. $all_block_settings[‘some_option’] = “Option Value”; return $all_block_settings; } Parameters: $all_block_settings Array – All Security Settings

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