LLMS_Install::get_can_install_user_id()

Get the WP User ID of the first available user who can ‘manage_options’


Description Description


Return Return

(int) Returns the ID of the current user if they can 'manage_options'. Otherwise returns the ID of the first Administrator if they can 'manage_options'. Returns 0 if the first Administrator cannot 'manage_options' or the current site has no Administrators.


Top ↑

Source Source

File: includes/class.llms.install.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.