Forum Replies Created

Viewing 15 replies - 151 through 165 (of 173 total)
  • Bri

    (@tinnyfusion)

    // Remove admin bar menu items
    // Source: https://digwp.com/2016/06/remove-toolbar-items/
    /* ------------------------------------- */
    add_action( 'wp_before_admin_bar_render', 'ctm_remove_admin_toolbar_menu', 999);
    
    function ctm_remove_admin_toolbar_menu() {
    	global $wp_admin_bar;
    	$wp_admin_bar->remove_menu('SG_CachePress_Supercacher_Purge');      // Remove Purge SG Cache (SiteGround Plugin)
        $wp_admin_bar->remove_menu('search');                               // Remove Search
        $wp_admin_bar->remove_menu('wp-statistic-menu');                    // Remove Online (WP Statistics Plugin)
        $wp_admin_bar->remove_menu('duplicate-content');                    // Remove Duplicate Content (Admin and Site Enhancements Plugin)
    } 
    /* ------------------------------------- */

    This includes a couple of other items I tend to remove too. Feel free to edit as required. Also provided the link to the site where I originally got this from too which has a full guide on how to remove any item you’d like (including from 3rd party plugins).

    Bri

    (@tinnyfusion)

    Agreed. have a snippet to remove this in the meantime if you’d like me to share it here?

    Thread Starter Bri

    (@tinnyfusion)

    Hi, thank you for your reply and very helpful suggestions.

    My server is running PHP 7.4.33.

    It was in fact, as you predicted, that I had Remove new content menu disabled.

    Thread Starter Bri

    (@tinnyfusion)

    A little more information. For whatever reason it now seems to be ‘almost’ working. Everything shows as it should – IE Post(s) are renamed to Article(s) but I have the following warning at the top of the WordPress admin screen:

    Warning: Creating default object from empty value in /home/customer/www/sitaddress.com/public_html/wp-content/themes/themename-com/functions.php on line 129

    The line in question is:

    $new_post_node->title = 'Article'; // Change title

    Maybe this is clashing with your plugin/code even though I am unable to rename either the Posts/Pages menu items with the free version of your plugin?

    Any assistance with this would be greatly appreciated/a fix in a future update.

    Thanks

    Thread Starter Bri

    (@tinnyfusion)

    Addendum: My mistake, I had left the Redirect After Login setting enabled which was still pointing back to my custom URL.

    After disabling this it then worked correctly.

    It’s late and I’m tired lol

    Thread Starter Bri

    (@tinnyfusion)

    @petredobrescu Thank you for the clarification.

    I would have thought information like this would at the very least have been obfuscated or omitted entirely but I am not a professional developer so I may be mistaken.

    Thread Starter Bri

    (@tinnyfusion)

    @fierevere Agreed as it’s already published on GitHub.

    @sixaxis?Could you please explain what information is sent/received/logged please?

    Thread Starter Bri

    (@tinnyfusion)

    enable-media-replace/build/shortpixel at master · short-pixel-optimizer/enable-media-replace · GitHub

    filesystem/composer.json
    log/composer.json
    notice/composer.json
    replacer/composer.json

    Thread Starter Bri

    (@tinnyfusion)

    Hi Mark, thank you for your reply.

    Now don’t I feel stupid! It would seem that I didn’t get the memo that the new word for colour is now ‘highlight’.. I guess it’s probably because I’m a late adopter of Gutenberg and so used to the classic editor that this escaped me.

    Additionally, the ‘highlight’ button in Microsoft Word does just that, it highlights.

    Anyway, thank you for your support.

    Thread Starter Bri

    (@tinnyfusion)

    Thank you for all the help you have already provided and hopefully this might make it to the plugin at some point.

    Bri

    (@tinnyfusion)

    Just adding that I would also love this feature too ??

    Thread Starter Bri

    (@tinnyfusion)

    Hi, your suggestion also kind of works.

    Now when I click the redeem button within the email it opens my site and applies the coupon just as before.

    If I then add a product to the cart for say the same price of the discount card (in this case £15) it shows with no shipping costs (exactly as I wanted) although there is now a new notification in the cart and on the checkout pages stating ‘Customer matched zone “UK”‘.

    To further test I then also added another product (also £15 but should have £2.95 shipping costs) to the cart (knowing I had no credit left from my earlier discount code/card) and although it was added correctly this also shows no shipping costs…

    It should only be products purchased using the discount code/card that has the shipping removed and not any other products that are added after the balance has been used up.

    From what I can tell your snippet removed ALL shipping regardless of the amount left.

    I don’t know, maybe this is a big ask to allow only products purchased while within credit to have no shipping but all others to have shipping costs applied maybe too much to control with a few extra lines of code in my functions.php

    Possibly a future feature for the plugin that would allow admins and shop managers to toggle on/off.

    It looks like shipping will have to not be included in any discount which kind of sucks if you’re buying a £15 gift card for someone to choose their own product but are then asked to pay for the postage. It’s like giving someone a birthday present and then asking them for a few pounds for the wrapping..

    Thread Starter Bri

    (@tinnyfusion)

    Thank you.

    Thread Starter Bri

    (@tinnyfusion)

    My apologies- I haven’t had time to test this yet due to the season.

    I won’t be able to test until after Christmas unfortunately as I don’t have access to my local server.

    As soon as I am able I will let you know how it’s working but until then would you mind leaving the post open?

    Thank you and a very merry Christmas to you.

    Thread Starter Bri

    (@tinnyfusion)

    Hi,

    Ok I tested the snippet and it sort of works.

    I click on the redeem button from the email sent out and the site opens with the code active.

    If I then add a £15 product it correctly debits £15 from the giftcard and shows as free shipping (also correct). However, if I now remove the giftcard the cart still shows free delivery (and not £2.95) even though there is no discount in place. It stays this way even if I refresh the page.

    If I add another product and update the cart it then corrects itself and sets shipping correctly for both products (in this case £5.90).

Viewing 15 replies - 151 through 165 (of 173 total)