-
Notifications
You must be signed in to change notification settings - Fork 19
/
settings.php
65 lines (52 loc) · 1.87 KB
/
settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;
/**
* Filters the title displayed on the settings page.
*
* @since 2.0.0
*
* @param $title The title to be displayed on the settings page
* @param $namespace The namespace to the settings instance.
*
* @return The page title
*/
function zm_alr_settings_page_title( $title, $namespace ){
return __( 'AJAX Login & Register', ZM_ALR_NAMESPACE );
}
add_filter( 'quilt_zm_alr_page_title', 'zm_alr_settings_page_title', 15, 2 );
/**
* Filters the title displayed in the admin sub-menu.
*
* @since 2.0.0
*
* @param $title The title to be displayed on the settings page
* @param $namespace The namespace to the settings instance.
*
* @return The menu title
*/
function zm_alr_settings_menu_title( $title, $namespace ){
return __( 'AJAX Login & Register', ZM_ALR_NAMESPACE );
}
add_filter( 'quilt_zm_alr_menu_title', 'zm_alr_settings_menu_title', 15, 2 );
/**
* Adds the Version, support URL, and Pro URL to the footer of the settings pages.
*
* @since 2.0.0
*
* @param $content
*
* @return Additional footer content
*/
function zm_alr_settings_footer_content( $content ){
$settings_campaign_url = 'http://store.zanematthew.com/downloads/tag/client-access-add-ons/?utm_source=WordPress&utm_medium=Settings%20Footer&utm_campaign=Client%20Access%20Add-ons';
return sprintf( '%s | v%s | <a href="%s" target="_blank">%s</a> | <a href="%s" target="_blank">%s</a>',
__( 'Thank you for using ZM AJAX Login & Register', ZM_ALR_NAMESPACE ),
ZM_ALR_VERSION,
esc_url( 'http://support.zanematthew.com/forum/zm-ajax-login-register/'),
__( 'Support', ZM_ALR_NAMESPACE ),
esc_url( $settings_campaign_url ),
__( 'Pro Version', ZM_ALR_NAMESPACE )
);
}
add_filter( 'quilt_zm_alr_footer', 'zm_alr_settings_footer_content', 15, 2 );