Add action hook for current page type in access settings

This commit is contained in:
champsupertramp
2016-04-16 16:40:14 +08:00
parent 10bc412e24
commit 8791704888
2 changed files with 46 additions and 0 deletions
+5
View File
@@ -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;