get_noptin_capability( string $capalibilty = 'manage_noptin' )

Returns the appropriate capability to check against

Parameters Parameters


(string) (Optional) The alternative capability to check against.

Default value: 'manage_noptin'

Top ↑

Return Return

(string) capability to check against

Top ↑

Source Source

File: includes/functions.php

function get_noptin_capability( $capalibilty = 'manage_noptin' ) {

	if ( current_user_can( 'manage_options' ) ) {
		return 'manage_options';

	return $capalibilty;

Top ↑

Changelog Changelog


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