Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Jesse Jarvis

    (@jessejjarvis)

    GPay only shows when the user has it available as an option. It should while signed out on my phone, but not while signed out on Chrome or Microsoft Edge. However it shows when logged in on the website with Chrome.

    Thread Starter Jesse Jarvis

    (@jessejjarvis)

    I’ve even tried this:

    add_filter( 'woocommerce_available_payment_gateways', 'conditionally_disable_paypal_payment_gateways', 10, 3 );
    function conditionally_disable_paypal_payment_gateways( $available_gateways ) {
        // if ( is_admin() ) return $available_gateways; // Only on frontend
    
        // Loop through payment gateways
        foreach( $available_gateways as $gateways_id => $gateways ){
            if ( ! is_user_logged_in() && $gateways_id === 'PayPal' ) {
                unset($available_gateways[$gateways_id]);
            }
        }
        return $available_gateways;
    }

    But it doesn’t seem to work. I found and modified code I found elsewhere that did the same thing but for users logged into a certain role and adjusted it to what I thought would work :/

    • This reply was modified 8 months, 2 weeks ago by Jesse Jarvis.
    • This reply was modified 8 months, 2 weeks ago by Jesse Jarvis.
    Thread Starter Jesse Jarvis

    (@jessejjarvis)

    Thanks!

    I ended up mostly figuring out how to relabel it like this:

    jQuery('.media-frame-title h1:contains("Edit Gallery")').text('Edit Album');
    jQuery('.media-toolbar-primary button:contains("Insert gallery")').text('Insert Album');

    However currently I only have it work when it loads the gallery (New Post) and when it’s editing the gallery. It doesn’t currently work when I click Edit Gallery, and then press “Cancel Gallery” which actually takes you back to the first page.

    So I am working on figuring out how to fix that.

    Thread Starter Jesse Jarvis

    (@jessejjarvis)

    So essentially what I want is my media library to always have a checkbox for multiple selection, or somehow just allow left clicking once to toggle the selection.

    I’d mainly like Touch users to be able to upload multiple, already got ctrl+click working.

    Anybody?

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