Source
protected function get_bulk_actions() {
$actions = array();
if ( current_user_can( get_taxonomy( $this->screen->taxonomy )->cap->delete_terms ) ) {
$actions['delete'] = __( 'Delete' );
}
return $actions;
}
CARVIEW |
protected function get_bulk_actions() {
$actions = array();
if ( current_user_can( get_taxonomy( $this->screen->taxonomy )->cap->delete_terms ) ) {
$actions['delete'] = __( 'Delete' );
}
return $actions;
}
Uses | Description |
---|---|
current_user_can()wp-includes/capabilities.php | Returns whether the current user has the specified capability. |
get_taxonomy()wp-includes/taxonomy.php | Retrieves the taxonomy object of $taxonomy. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.