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 ); ?>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly