Plugin Security Flashcards
1
Q
What WP function checks if a user has a capability or a role before proceeding to a sensitive action?
A
<?php current_user_can( $capability , $object_id ); ?>
2
Q
A
What WP function checks if a user has a capability or a role before proceeding to a sensitive action?
<?php current_user_can( $capability , $object_id ); ?>