woocommerce_permission_list

woocommerce_permission_list

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_permission_list') is found 1 times:

  • /includes/wc-user-functions.php line 735
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    * @return array
     */
    function wc_get_customer_download_permissions( $customer_id ) {
        $data_store = WC_Data_Store::load( 'customer-download' );
        return apply_filters( 'woocommerce_permission_list', $data_store->get_downloads_for_customer( $customer_id ), $customer_id ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    }
     
    /**
     * Get customer available downloads.
     *
     * @param int $customer_id Customer/User ID.