Skip to content

Instantly share code, notes, and snippets.

View owaisahmed5300's full-sized avatar
🏠
Working from home

Owais ahmed owaisahmed5300

🏠
Working from home
View GitHub Profile
@owaisahmed5300
owaisahmed5300 / wp-bootstrap-5-comment-walker.php
Created May 14, 2024 08:00 — forked from ayoubkhan558-zz/wp-bootstrap-5-comment-walker.php
A custom WordPress comment walker class to implement the Bootstrap 5 Card in WordPress comment list.
<?php
/**
* A custom WordPress comment walker class to implement the Bootstrap 3 Media object in wordpress comment list.
*
* @package wp-bootstrap-5-comment-walker
* @version 1.0.0
* @author Ayoub Khan <[email protected]>
* @license MIT
@owaisahmed5300
owaisahmed5300 / closeConnection.php
Created December 23, 2023 08:00 — forked from bubba-h57/closeConnection.php
Easy way to close connections to the browser and continue processing on the server.
<?php
/**
* Close the connection to the browser but continue processing the operation
* @param $body
*/
public function closeConnection($body, $responseCode){
// Cause we are clever and don't want the rest of the script to be bound by a timeout.
// Set to zero so no time limit is imposed from here on out.
set_time_limit(0);