Title: benorange's Replies | WordPress.org

---

# benorange

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 47 total)

1 [2](https://wordpress.org/support/users/benorange/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/benorange/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/benorange/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/benorange/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Easy Pay – Payment and Donation form Builder for Square] As payment gateway](https://wordpress.org/support/topic/as-payment-gateway/)
 *  Thread Starter [benorange](https://wordpress.org/support/users/benorange/)
 * (@benorange)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/as-payment-gateway/#post-15949429)
 * Thanks [@hamza1010](https://wordpress.org/support/users/hamza1010/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Payment Methods by Product & Country for WooCommerce] Gateway compatibility](https://wordpress.org/support/topic/gateway-compatibility/)
 *  Thread Starter [benorange](https://wordpress.org/support/users/benorange/)
 * (@benorange)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/gateway-compatibility/#post-15849136)
 * Hi [@omardabbas](https://wordpress.org/support/users/omardabbas/),
 * Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Stripe Payment Gateway] Apple/Google Pay](https://wordpress.org/support/topic/apple-google-pay-2/)
 *  Thread Starter [benorange](https://wordpress.org/support/users/benorange/)
 * (@benorange)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/apple-google-pay-2/#post-15821376)
 * Hi [@3sonsdevelopment](https://wordpress.org/support/users/3sonsdevelopment/),
 * Thanks for letting me know
 * Bw
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Block Visibility — Conditional Visibility Control for the Block Editor] Hide block for user group (not role)](https://wordpress.org/support/topic/hide-block-for-user-group-not-role/)
 *  Thread Starter [benorange](https://wordpress.org/support/users/benorange/)
 * (@benorange)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/hide-block-for-user-group-not-role/#post-15818905)
 * Hi [@ndiego](https://wordpress.org/support/users/ndiego/),
 * Thanks for follow up and sorry for the late reply. As my use case is a single
   element ‘hide’ and we are plugin heavy.. I am going with a new function in functions.
   php that I’ll call before any html on the pages that need it. The function will
   check user group in wp_usermeta.
 * The user group meta is added by ACF and ecommerce is a few woo plugins for interest.
 * Bw,
    Ben
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Payments confusion](https://wordpress.org/support/topic/payments-confusion/)
 *  Thread Starter [benorange](https://wordpress.org/support/users/benorange/)
 * (@benorange)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/payments-confusion/#post-15806511)
 * Hi [@danndumia](https://wordpress.org/support/users/danndumia/),
 * Thanks for reply.
 * Woo commerce Payments would offer Aple/Google Pay via Stripe, as I understand
   it, so aside from moving payment completion in-page it would not overcome the
   issue that there is already a franchise (separate company) using the Stripe gateway.
 * It appears that the multi-account link you shared is for one client/company creating
   more that one account. We do not need two accounts, we only need one. Rather,
   if we stay with Stripe we would need the gateway to handle two separate Stripe
   accounts.
 * As I was writing this reply I heard back from Stripe:
 * > `3 Sons Development – a11n wrote:
   > Hi [@benorange](https://wordpress.org/support/users/benorange/),
   > Can Stripe payment gateway plugin be used with two different stripe accounts/
   > companies at the same time (eg, a franchise product sale and a direct product
   > sale)?
   > Good question! It’s not possible to use two different Stripe accounts with 
   > this Stripe. You may be able to use this one along with another Stripe plugin
   > from a third party. I can’t promise that will work but it would be the only
   > way to make that work.`
 * So the search continues for a reliable payment gateway for Woo that offers Apple
   and Google pay.
 * We can’t use Stripe reliably as it is already used with a different Stripe account,
   and I don’t want to use Square beccause the reviews are not encouraging.
 * Thanks!
 * Bw,
    Ben
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Stripe Payment Gateway] Apple/Google Pay](https://wordpress.org/support/topic/apple-google-pay-2/)
 *  Thread Starter [benorange](https://wordpress.org/support/users/benorange/)
 * (@benorange)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/apple-google-pay-2/#post-15806141)
 * Hi [@3sonsdevelopment](https://wordpress.org/support/users/3sonsdevelopment/),
 * Thanks for reply.
 * Can Stripe payment gateway plugin be used with two different stripe accounts/
   companies at the same time (eg, a franchise product sale and a direct product
   sale)?
 * -Something like this for paypal: PayPal for WooCommerce Multi-Account Management
 * I am trying ‘Payment Gateways per Products for WooCommerce’ and is working well.
 * Bw,
    Ben
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards] Family users](https://wordpress.org/support/topic/family-users-4/)
 *  Thread Starter [benorange](https://wordpress.org/support/users/benorange/)
 * (@benorange)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/family-users-4/#post-15797817)
 * Hi [@peterschulznl](https://wordpress.org/support/users/peterschulznl/),
 * Thanks for follow up and advice. Not resolved but I have half a plan, not enough
   to be helpful to anyone else yet. Will close ticket though.
 * Bw,
    Ben
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Restrict User Access - Ultimate Membership & Content Protection] User groups](https://wordpress.org/support/topic/user-groups-9/)
 *  Thread Starter [benorange](https://wordpress.org/support/users/benorange/)
 * (@benorange)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/user-groups-9/#post-15796365)
 * Hi Joachim,
 * That’s really kind, thanks for the offer. The custom fields plugin is ACF. As
   mine is a single use case and we have a fair few plugins already.. I decided 
   to go with a more manual approach, calling a function from each restricted resource
   page template. In case it’s helpful to anyone and comments welcome (still figuring
   it out), this is only a draft and haven’t found the ‘last user record update 
   date’ call yet but it’ll look something like this probably:
 *     ```
       function authorise_access(){
       	$resource_type = get_field('resource-type'); 
       	$user_group = get_user_meta('user-group', get_current_user_id() );
       	$last_update = strtotime(get_user_meta(‘LAST_USER_MODIFIED_DATE‘, get_current_user_id() ));
       	$current_date_s = time(); 
               $secs = $current_date - $last_update;
               $days = $secs / 86400;
       	$permissions = [
       		'Type 1' => ['User group 1', 'User group 1 & 2', ‘User group 1 & 3’], 
       		'Type 2' => ['User group 2', 'User group 1 & 2', ‘User group 2 & 3’], 	
       		'Type 3' => ['User group 3', 'User group 1 & 3', ‘User group 2 & 3’]
       	];
       	if(in_array($user_group, $permissions[$resource_type]) ){ 
       		If ($days < 366){
       	               <style type="text/css">.advert-banner{ 
                              display:none; 
                       	}</style>
       			return null; 
       		}
       	}
               header('Location: https://'. get_site_url.'/promotion');
       }
       ```
   
 * This requires a ‘authorise_access();’ call in restricted pages’ templates and
   using ACF to add the resource-type field and values for restrictions to compare
   to user groups.
 * This function also hides a promo div as these user groups have already signed
   up.
 * Bw
    Ben
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPFront User Role Editor] Family users](https://wordpress.org/support/topic/family-users-3/)
 *  Thread Starter [benorange](https://wordpress.org/support/users/benorange/)
 * (@benorange)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/family-users-3/#post-15768290)
 * Ok thanks anyway!
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Updating user meta](https://wordpress.org/support/topic/updating-user-meta-3/)
 *  Thread Starter [benorange](https://wordpress.org/support/users/benorange/)
 * (@benorange)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/updating-user-meta-3/#post-15765498)
 * Note, the access to links granted by access level will be set to expire after
   12 months so the users in this list could be filtered by ‘created in in last 
   12 months’. Then it would ony be a few hundred users..
 * Bw,
    Ben
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Updating user meta](https://wordpress.org/support/topic/updating-user-meta-3/)
 *  Thread Starter [benorange](https://wordpress.org/support/users/benorange/)
 * (@benorange)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/updating-user-meta-3/#post-15765489)
 * Hi [@bcworkz](https://wordpress.org/support/users/bcworkz/),
 * Thanks for the fast reply. I appreciate you taking the time.
 * How many users are involved?
    There are about 2000 users
 * Is there anything in the DB that can define who belongs to what group?
    Yes, 
   user group is a custom field for user added at registration. Users who only book
   an exam without a course have no assigned value for user group but updating null
   group to null access level would be ok.
 * I’m guessing the process would timeout with the number of users but for my understanding,
   would the following work if there were only a few users?
 *     ```
       SELECT * FROM users;
       foreach ( users as $user ) {
       	$value = get_user_meta( $user, 'group_id', true );
          	$success = update_user_meta( $user, 'restrict_level', $value );
          	if ( ! $success ) echo 'Adding meta failed for user ID ', $user, ".<br>\n";
       }
       ```
   
 * The site has lots of resources but from what you said I’m guessing I would have
   to break up the list and do them in batches..
 * I am clear on the page template -> execute from browser process. I like that 
   plan.
 * Bw,
    Ben
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Groups] Family accounts](https://wordpress.org/support/topic/family-accounts/)
 *  Thread Starter [benorange](https://wordpress.org/support/users/benorange/)
 * (@benorange)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/family-accounts/#post-15756898)
 * Thanks [@proaktion](https://wordpress.org/support/users/proaktion/),
 * I will do some work on this. Before I follow up. Grateful for you taking the 
   time.
 * Bw,
    Ben
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPFront User Role Editor] Family users](https://wordpress.org/support/topic/family-users-3/)
 *  Thread Starter [benorange](https://wordpress.org/support/users/benorange/)
 * (@benorange)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/family-users-3/#post-15756708)
 * Hi [@swathiswpfront](https://wordpress.org/support/users/swathiswpfront/),
 * Thanks for reply.
 * We currently only use student user accounts. The new requirement will involve
   a new user type for parents or to make the sibling records available to each 
   respective sibling account.
 * Either of these methods would enable a multi child parent to view all of their
   childrens’ data (homework results) in one place, and ultimately to be able to
   upload homework for all children also in one place.
 * Bw,
    Ben
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Groups] Family accounts](https://wordpress.org/support/topic/family-accounts/)
 *  Thread Starter [benorange](https://wordpress.org/support/users/benorange/)
 * (@benorange)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/family-accounts/#post-15753910)
 * Hi [@proaktion](https://wordpress.org/support/users/proaktion/),
 * Thanks. Interesting reading.
 * Would each family require a different custom page each to view group data?
 * The score page will be the same page for each user so I am guessing I still need
   to handle the ‘custom query and page with access to other users data’ part of
   problem. This is helpful though for how to display. I guess we’ll need a cutome
   page for each family but there are not too many.
 * Users don’t need to create pages, only view data from child dbs and upload new
   results if possilbe.
 * Thanks again.
 * Bw,
    Ben
    -  This reply was modified 3 years, 10 months ago by [benorange](https://wordpress.org/support/users/benorange/).
      Reason: thought about it
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards] Family users](https://wordpress.org/support/topic/family-users-4/)
 *  Thread Starter [benorange](https://wordpress.org/support/users/benorange/)
 * (@benorange)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/family-users-4/#post-15753006)
 * Thanks Peter,
 * Will do!
 * Bw,
    Ben

Viewing 15 replies - 1 through 15 (of 47 total)

1 [2](https://wordpress.org/support/users/benorange/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/benorange/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/benorange/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/benorange/replies/page/2/?output_format=md)