PluginProbe
Texty – SMS Notification for WordPress, WooCommerce, Dokan and more / 0.2
Texty – SMS Notification for WordPress, WooCommerce, Dokan and more v0.2
2.0.2 trunk 0.2 1.0 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 2.0.0 2.0.1
texty / includes / Admin / Profile.php

Profile.php in Texty – SMS Notification for WordPress, WooCommerce, Dokan and more 0.2, at includes/Admin/Profile.php

33 lines 569 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Texty\Admin;
4
5 use WP_User;
6
7 /**
8 * Profile Class
9 */
10 class Profile {
11
12 /**
13 * Initialize
14 */
15 public function __construct() {
16 add_filter( 'user_contactmethods', [ $this, 'add_contact_methods' ], 8, 2 );
17 }
18
19 /**
20 * Add phone number as contact method
21 *
22 * @param array $methods
23 * @param WP_User $user
24 *
25 * @return array
26 */
27 public function add_contact_methods( $methods, $user ) {
28 $methods['texty_phone'] = __( 'Phone Number (Texty)', 'texty' );
29
30 return $methods;
31 }
32 }
33