Documentation

private-products.php

Private products

Tags
since
16.0.0
author

José Conti.

link
https://joseconti.com
link
https://redsys.joseconti.com
link
https://woo.com/products/redsys-gateway/
license

GNU General Public License v3.0

license

URI: http://www.gnu.org/licenses/gpl-3.0.html

copyright

2013-2024 José Conti.

Table of Contents

Functions

redsys_is_private_product()  : mixed
Check if product is private
redsys_make_private()  : mixed
Make private products
redsys_private_product_tab()  : mixed
Adding a custom tab
redsys_private_product_tab_panel()  : mixed
Adding a custom tab panel
redsys_save_private_product()  : mixed
Save the custom fields
redsys_load_scripts_product()  : mixed
Load scripts
redsys_private_product_query()  : mixed
Hide private products from shop

Functions

redsys_is_private_product()

Check if product is private

redsys_is_private_product(int $user_id, int $product_id) : mixed
Parameters
$user_id : int

User ID.

$product_id : int

Product ID.

redsys_make_private()

Make private products

redsys_make_private() : mixed

redsys_private_product_tab()

Adding a custom tab

redsys_private_product_tab(array<string|int, mixed> $tabs) : mixed
Parameters
$tabs : array<string|int, mixed>

Tabs.

redsys_private_product_tab_panel()

Adding a custom tab panel

redsys_private_product_tab_panel() : mixed

redsys_save_private_product()

Save the custom fields

redsys_save_private_product(int $post_id) : mixed
Parameters
$post_id : int

Post ID.

redsys_load_scripts_product()

Load scripts

redsys_load_scripts_product() : mixed

redsys_private_product_query()

Hide private products from shop

redsys_private_product_query(object $q) : mixed
Parameters
$q : object

Query.


        
On this page

Search results