What is Git Flow?

Gitflow Workflow is a Git workflow that helps with continuous software development and implementing DevOps practices. ... The Gitflow Workflow defines a strict branching model designed around the project release. This provides a robust framework for managing larger projects.

https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow#:~:text=Gitflow%20Workflow%20is%20a%20Git,development%20and%20implementing%20DevOps%20practices.&text=The%20Gitflow%20Workflow%20defines%20a,framework%20for%20managing%20larger%20projects.

What is Redis?

Redis is an in-memory data structure store, used as a distributed, in-memory key–value database, cache and message broker, with optional durability. Redis supports different kinds of abstract data structures, such as strings, lists, maps, sets, sorted sets, HyperLogLogs, bitmaps, streams, and spatial indices

https://redis.io/

Ajax.load

    $("#debtor-customer-filter").on('submit', function(e) {
        e.preventDefault();
        var data = new FormData(this);

        $("#debtors-table").DataTable().destroy();
        $("#debtors-list").load("debtor/filterCustomerDebtorById", {
            debtorFilter: $("#customer-filter").val(), // This set's the status to fetch all records
            fromDate: $("#from-date").val(),
            toDate: $("#to-date").val(),
            cid: $("#customer-id").val()
        }, function (response,status,xhr) {
            $("#debtors-table").DataTable();
            fetchDebtors(response);
        });
    });

    function fetchDebtors(response) {
        $(this).html(response);
    }

xDebug PHP Wizard

Setting up xDebug is a bit of a pain as the links are not clearly linked.
So below is some info to help you 😉

In order to use the Install Wizard.
Open your PHPinfo() page from the xampp default dashboard page
http://localhost/dashboard/phpinfo.php

Copy all "Ctrl+A" and paste into the install wizard box and you will get further instructions

The Install Wizard (I think this is mainly for windows. Linux and mac can use terminal)
https://xdebug.org/wizard

Here's the downloads you going to need as the one you get from the wizard is not working. (currently at the time of this post creation)
https://xdebug.org/download#releases

WordPress Only allow users to see their own media uploads

// Limit media library access
  
add_filter( 'ajax_query_attachments_args', 'wpb_show_current_user_attachments' );
 
function wpb_show_current_user_attachments( $query ) {
    $user_id = get_current_user_id();
    if ( $user_id && !current_user_can('activate_plugins') && !current_user_can('edit_others_posts
') ) {
        $query['author'] = $user_id;
    }
    return $query;
}