• Resolved Edward

    (@kamiyeye)


    Using the filter “woo_preview_emails_min_capability” to specify a custom capability, the Search Orders form not working due to the capability being limited to “manage_options” in the ajax callback function:

    public function get_orders() {

    if ( ! current_user_can( ‘manage_options’ ) ) {

    return false;

    }

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unable to use custom capability’ is closed to new replies.