Title: bramvanast's Replies | WordPress.org

---

# bramvanast

  [  ](https://wordpress.org/support/users/bramvanast/)

 *   [Profile](https://wordpress.org/support/users/bramvanast/)
 *   [Topics Started](https://wordpress.org/support/users/bramvanast/topics/)
 *   [Replies Created](https://wordpress.org/support/users/bramvanast/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/bramvanast/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/bramvanast/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/bramvanast/engagements/)
 *   [Favorites](https://wordpress.org/support/users/bramvanast/favorites/)

 Search replies:

## Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Order Export For WooCommerce] Custom development basid on yoir plugin](https://wordpress.org/support/topic/custom-development-basid-on-yoir-plugin/)
 *  Thread Starter [bramvanast](https://wordpress.org/support/users/bramvanast/)
 * (@bramvanast)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/custom-development-basid-on-yoir-plugin/#post-13937130)
 * Hi Alex,
 * Thanks for your fast reply.
 * I think we need some specific code.
    What I will do, not today but somewhere 
   next week, is submit a ticket to [https://algolplus.freshdesk.com/](https://algolplus.freshdesk.com/).
   With the required specific code.
 * Next we can communicate about it.
 * Thanks,
    Bram
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[VS Event List] Event date is being changed when published](https://wordpress.org/support/topic/event-date-is-being-changed-when-published/)
 *  [bramvanast](https://wordpress.org/support/users/bramvanast/)
 * (@bramvanast)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/event-date-is-being-changed-when-published/page/3/#post-12250508)
 * Hi Guido,
 * I changed the Settings from local (Amsterdam) to UTC+1.
    (which results in the
   correct date-setting for us)
 * Problem solved!
 * Thanks for the advise!
 * Kind regards,
    Bram
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[VS Event List] Event date is being changed when published](https://wordpress.org/support/topic/event-date-is-being-changed-when-published/)
 *  [bramvanast](https://wordpress.org/support/users/bramvanast/)
 * (@bramvanast)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/event-date-is-being-changed-when-published/page/3/#post-12245691)
 * Hi Guido,
 * Thanks for the early reply.
 * Yes, the dates are set correct.
    Yes, we are using DIVI.
 * WP = 5.3.1–nl_NL
    Very Simple Event List = 10.9
 * I hope you can resolve this issue.
 * Regards
    Bram
    -  This reply was modified 6 years, 8 months ago by [bramvanast](https://wordpress.org/support/users/bramvanast/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[VS Event List] Event date is being changed when published](https://wordpress.org/support/topic/event-date-is-being-changed-when-published/)
 *  [bramvanast](https://wordpress.org/support/users/bramvanast/)
 * (@bramvanast)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/event-date-is-being-changed-when-published/page/2/#post-12234386)
 * Hi,
 * I am experiecing the same issue on website [https://vriesversplatform.nl/](https://vriesversplatform.nl/)
 * When saving the event, with the correct date, next the date is set 1 day earlier.
   (
   So march 12 2020 becomes march 11 2020)
 * Very Simple Event List
    Versie: 10.9
 * Wordpress
    versie 5.3.1
 * Can you please help!
 * Thanks
    Bram
 * P.S. If required I can give you access to the back-end of the site)
    -  This reply was modified 6 years, 8 months ago by [bramvanast](https://wordpress.org/support/users/bramvanast/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Latest Posts] Open post in New Window](https://wordpress.org/support/topic/open-post-in-new-window-2/)
 *  Thread Starter [bramvanast](https://wordpress.org/support/users/bramvanast/)
 * (@bramvanast)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/open-post-in-new-window-2/#post-8453026)
 * Hi,
 * OK, thanks for your early reply.
 * When would this approximately be available?
 * Regards
    Bram
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Max Mega Menu] MMM not working properly on Smartphone](https://wordpress.org/support/topic/mmm-not-working-properly-on-smartphone/)
 *  Thread Starter [bramvanast](https://wordpress.org/support/users/bramvanast/)
 * (@bramvanast)
 * [10 years ago](https://wordpress.org/support/topic/mmm-not-working-properly-on-smartphone/#post-8154778)
 * We are working on it, with custom development.
 * (Which I definitely did not want to have)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Woocommerce Restrict or Hide Products and Categories from specific user roles](https://wordpress.org/support/topic/woocommerce-restrict-or-hide-products-and-categories-from-specific-user-roles/)
 *  [bramvanast](https://wordpress.org/support/users/bramvanast/)
 * (@bramvanast)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/woocommerce-restrict-or-hide-products-and-categories-from-specific-user-roles/#post-6510597)
 * Hi Stan_Joco
 * I used your code and got it working.
    HOWEVER it seems that the filtered/hidden
   shows up in the product-categories sidebar widget once you have visited a product.
 * Can you please give me some advise how to solve this?
 * Thanks
    Bram
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Woocommerce Restrict or Hide Products and Categories from specific user roles](https://wordpress.org/support/topic/woocommerce-restrict-or-hide-products-and-categories-from-specific-user-roles/)
 *  [bramvanast](https://wordpress.org/support/users/bramvanast/)
 * (@bramvanast)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/woocommerce-restrict-or-hide-products-and-categories-from-specific-user-roles/#post-6510596)
 * Minor change:
    Not “customer” but staffel_g_klanten”” , which is the customergroup(
   Role) I want to make the “specials” visible to.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Woocommerce Restrict or Hide Products and Categories from specific user roles](https://wordpress.org/support/topic/woocommerce-restrict-or-hide-products-and-categories-from-specific-user-roles/)
 *  [bramvanast](https://wordpress.org/support/users/bramvanast/)
 * (@bramvanast)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/woocommerce-restrict-or-hide-products-and-categories-from-specific-user-roles/#post-6510595)
 * Minor change:
    Not “customer” but staffel_g_klanten”” , which is the customergroup(
   Role) I want to make the “specials” visible to.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Woocommerce Restrict or Hide Products and Categories from specific user roles](https://wordpress.org/support/topic/woocommerce-restrict-or-hide-products-and-categories-from-specific-user-roles/)
 *  [bramvanast](https://wordpress.org/support/users/bramvanast/)
 * (@bramvanast)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/woocommerce-restrict-or-hide-products-and-categories-from-specific-user-roles/#post-6510594)
 * Hi,
 * I used the code from: Stan_Joco(which is originally from SideKick Dan.
 * Only changed the categoryname (specials) and User-role “wholesale-user” changed
   to “customer”.
 * Unfortunately the specials-category (and it’s products) are still visible.
 * Is there someone that can help me with this?
    Thanks?
 * —
    Code I have added to the functions.php of the theme.
 * ——
 * // Woocommerce – Redirect unauthorised users from accessing a specified product
   category when clicked or visited via direct url
    function woocommerce_hide_non_registered(){
   if( ( is_product_category(‘specials’) ) && ! ( current_user_can( ‘staffel_g_klanten’)
   || current_user_can( ‘administrator’ ) ) ) {
 *  wp_redirect( site_url( ‘/’ ) );
 *  exit();
    } } add_action( ‘template_redirect’,’woocommerce_hide_non_registered’);//
   End – Woocommerce – redirect unauthorised users from accessing a specified product
   category // Woocommerce – Removes category link from woocommerce product category
   widgets so they are not seen add_filter( ‘get_terms’, ‘get_subcategory_terms’,
   10, 3 ); function get_subcategory_terms( $terms, $taxonomies, $args ) { $new_terms
   = array(); // if a product category and on the shop page if ( in_array( ‘product_cat’,
   $taxonomies ) && ! ( current_user_can( ‘staffel_g_klanten’ ) || current_user_can(‘
   administrator’ ) ) && is_shop() ) { foreach ( $terms as $key => $term ) { if (!
   in_array( $term->slug, array( ‘specials’ ) ) ) { $new_terms[] = $term; } } $terms
   = $new_terms; } return $terms; } // End – Woocommerce – Removes category link
   from woocommerce product category widgets so they are not seen // Woocommerce–
   Remove products from being displayed that belong to a category user is not authorised
   to visit. Products seem to still be accessible via direct url unfortunately. 
   add_action( ‘pre_get_posts’, ‘custom_pre_get_posts’ );
 * function custom_pre_get_posts( $q ) {
 *  if ( ! $q->is_main_query() ) return;
 *  if ( ! $q->is_post_type_archive() ) return;
 *  if ( ! ( current_user_can( ‘staffel_g_klanten’ ) || current_user_can( ‘administrator’))&&
   is_shop() ) {
 *  $q->set( ‘tax_query’, array(array(
 *  ‘taxonomy’ => ‘product_cat’,
 *  ‘field’ => ‘slug’,
 *  ‘terms’ => array( ‘specials’), // Don’t display products in the private-clients
   category on the shop page
 *  ‘operator’ => ‘NOT IN’
 *  )));
 *  }
 * remove_action( ‘pre_get_posts’, ‘custom_pre_get_posts_query’ );
 * }
    // End – Woocommerce – Remove products from being displayed that belong to
   a category user is not authorised to visit. Products seem to still be accessible
   via direct url unfortunately. //to do figure out how to restrict a product located
   in an unauthorised category based on the url

Viewing 10 replies - 1 through 10 (of 10 total)