Author: Bunty ( Site Admin )

  • How to run Behat tests in WP-CLI?

    How to run Behat tests in WP-CLI?

    How to run Behat tests in WP-CLI.

    Steps to follow:

    1. Clone the repo
    2. Run – compser install
    3. Make DB – wp_cli_test
    4. Give Privilege – grant all privileges on . to wp_cli_test@localhost identified by ‘password1’ with grant option;
    5. Run behat command

    Watch the video for instructions

  • Replacement of -d in xargs for MacOS

    Replacement of -d in xargs for MacOS

    As we all know -d will not work in macOS.

    Also, placeholder % will not work in macOS.

    Look at the following command which uses xargs in Ubuntu

    wp term generate category --format=ids --count=3 | xargs -d ' ' -I % wp term meta add % foo bar
    

    The above command will give the following error if you execute in macOS

    So in order to execute the above command in macOS, you could do the following:

    wp term generate category --format=ids --count=3 | xargs -n1 -I {} wp term meta add {} foo bar

    That’s it guys and girls!

  • Woo Post Sponsorship

    Woo Post Sponsorship

    Woo Post Sponsorship is a WooCommerce add-on that allows users to sponsor your posts.

    Pre-requirements

    • WooCommerce Plugin Should be installed.

    How to setup

    1. Install Woo Post Sponsorship Plugin.
    2. Select Woo Post Sponsorship menu in Admin Dashboard.
    3. Click on “Select Post type for Sponsorship” and Select Post-Types to make sure the Sponsorship feature is enabled for the Post-Type you want.
    4. [Optional] The Sponsorship shop page can also be changed by clicking on “Sponsorship Shop Page“.
    1. Now Go to Products -> Add New.
    2. Enter the Product name, and description as you want.
    3. Scroll down a bit, There will be a section called Product Data.
    1. Select Sponsorship Product from the dropdown.
    2. Enter the Sponsorship Price and Validity according to your needs.
    3. Click on Publish.

    How Plugin Works?

  • ActiveCampaign Newsletter Subscription Pro

    ActiveCampaign Newsletter Subscription Pro

    This is a pro plugin of ActiveCampaign Newsletter Subscription WordPress plugin.

    Here is the free plugin: https://wordpress.org/plugins/activecampaign-newsletter-subscription/

    This pro plugin has compatibility with the following plugins:

    • BuddyPress
    • WooCommerce

    Newsletter subscription is applicable only to the registration form.

    This plugin needs at least ActiveCampaign Newsletter Subscription v1.0.1

    Contact me for 50% off on Twitter.

  • Comment Mention Pro

    Comment Mention Pro

    This is a pro plugin of Comment Mention WordPress plugin.

    TO USE THIS PRO PLUGIN, MAKE SURE YOU HAVE THE LASTEST Comment Mention PLUGIN v1.3.0

    Here is the free plugin: https://wordpress.org/plugins/comment-mention/

    How Pro plugin works?

    Followings are added as a pro feature.

    • Search by First/Last name while mention.
    • Enable mentioning on Page comment.
    • Go to wp-admin –> Comment Mention
    • And you will see options to enable pro features https://prnt.sc/r5W2X4utYe3v

    If you have any issue with Pro plugin, discuss it here https://bhargavb.com/forums/forum/plugin-issues-discussion/