options = get_option( Authenticator::KEY ); add_action( 'show_user_profile', array( $this, 'add_custom_profile_fields' ) ); add_action( 'edit_user_profile', array( $this, 'add_custom_profile_fields' ) ); } /** * Add custom profile fields * * @param array $user * * @return void */ public function add_custom_profile_fields( $user ) { if ( 'token' !== $this->options[ 'feed_authentication' ] ) { return NULL; } if ( '0' === $this->options[ 'show_token_to_users' ] || ! user_can( $user, 'read' ) ) { return; } ?>
| ' . add_query_arg( $this->options[ 'auth_token' ], '', get_bloginfo( 'rss2_url' ) ) . '' );?> |