Skip to content

Instantly share code, notes, and snippets.

View manchumahara's full-sized avatar
💭
Life is beautiful!

Sabuj Kundu manchumahara

💭
Life is beautiful!
View GitHub Profile
@manchumahara
manchumahara / fake_review.json
Created May 26, 2026 13:15
Fake Review with heading, content, star as json format
[
{
"heading": "Excellent Plugin for Daily Use",
"review": "This plugin saved me a lot of development time. Easy setup, clean interface, and works exactly as expected. Support was also very responsive.",
"star": 5
},
{
"heading": "Simple and Reliable",
"review": "I installed it on a client website and everything worked smoothly right away. The documentation is clear and beginner friendly.",
"star": 4
@manchumahara
manchumahara / gist:dc88a6b9b157ada5f02cb8408653b80f
Created September 21, 2022 04:53
Google My Business Categories (Json formatted)
[
"Abbey",
"Aboriginal and Torres Strait Islander organization",
"Aboriginal art gallery",
"Abortion clinic",
"Abrasives supplier",
"Abundant Life church",
"Accountant",
"Accounting firm",
"Accounting school",
@manchumahara
manchumahara / hide_load_textdomain_just_in_time.php
Created April 21, 2026 06:29
Hide warning load_textdomain_just_in_time in wordpress
// In functions.php or a mu-plugin
add_filter('doing_it_wrong_trigger_error', function($trigger, $function_name) {
if ($function_name === '_load_textdomain_just_in_time') {
return false;
}
return $trigger;
}, 10, 2);
@manchumahara
manchumahara / gist:0b9e115b3796c593425fd34c60a09c25
Last active February 7, 2026 14:29
Codeboxr (Codeboxr.com) Public Profile
# Codeboxr Company Profile
More details online https://claude.ai/public/artifacts/4e232f7e-5bce-4b37-8d76-1d818a62809d
## Company Overview
**Company Name:** Codeboxr
**Website:** https://codeboxr.com
**Founded:** 2011
**Type:** Software Development Company
@manchumahara
manchumahara / deploy.yml
Created November 9, 2025 04:37
github to wordpress dir plugin release workflow
name: Deploy to WordPress.org
on:
push:
tags:
- "*"
jobs:
deploy:
name: Deploy WordPress Plugin
@manchumahara
manchumahara / event_cats.php
Last active September 15, 2025 05:13
Common Event category
<?php
$eventCategories = [
'theme' => [
'name' => 'Theme',
'items' => [
'Technology & Innovation',
'Business & Startups',
'Design & Creativity',
'Science & Research',
if ( defined('CBXPHPSPREADSHEET_PLUGIN_NAME') && cbxphpspreadsheet_loadable() ) {
//Include PHPExcel
require_once( CBXPHPSPREADSHEET_ROOT_PATH . 'lib/vendor/autoload.php' ); //or use 'cbxphpspreadsheet_load();'
//now take instance
$objPHPExcel = new \PhpOffice\PhpSpreadsheet\Spreadsheet();
//do whatever you need to do
}
<?php
class CBXChangelogOptionAsArray {
private $optionName;
private $primaryKey;
private $data = [];
private $nextIndex = 1;
private $usedKeys = [];
public function __construct($optionName = 'custom_optionname', $primaryKey = 'id') {
$this->primaryKey = $primaryKey;
<?php
class CBXChangelogMetaAsArray {
private $postId; // The post ID to which meta data will be saved
private $primaryKey;
private $metakey; // Meta key for saving and loading data
private $data = [];
private $nextIndex = 1;
private $usedKeys = []; // Track all used keys
@manchumahara
manchumahara / TableDateFieldAsArray.php
Created January 9, 2025 10:56
Use a table field as array - php + wordpress
<?php
class TableDateFieldAsArray {
private $postId; // The post ID for context
private $primaryKey; // Primary key for rows
private $tableName; // Custom table name
private $fieldName; // Field in the table to store serialized data
private $data = []; // The actual data
private $nextIndex = 1;
private $usedKeys = []; // Track all used keys