mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 14:43:49 +09:00
Add action hook for current page type in access settings
This commit is contained in:
@@ -144,6 +144,11 @@
|
||||
$post_id = get_option('woocommerce_shop_page_id');
|
||||
|
||||
} else if ( is_archive() || is_front_page() || is_home() || is_search() || in_the_loop() || is_feed() ) {
|
||||
|
||||
$current_page_type = um_get_current_page_type();
|
||||
|
||||
do_action("um_access_post_type",$current_page_type);
|
||||
do_action("um_access_post_type_{$current_page_type}");
|
||||
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user