Noptin_Form::get_user_role()

Returns the current user’s role.


Return Return

(string)


Top ↑

Source Source

File: includes/class-noptin-form.php

	public function get_user_role() {
		$user = wp_get_current_user();
		return empty( $user ) ? '' : current( $user->roles );
	}


Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation