Skip to content

Instantly share code, notes, and snippets.

@arshidkv12
arshidkv12 / ninja_forms_after_submission
Last active October 31, 2020 02:59
Ninja Forms External Database (MySQL)- Develop CRM [Plugin]
ninja_forms_after_submission
@arshidkv12
arshidkv12 / contact form 7 file field
Last active July 16, 2019 05:33
Contact form 7 file field
Contact form 7 file field
[file your-file ]
Add following codes in php.ini
upload_max_filesize = 20M
post_max_size = 21M
memory_limit = 15
max_execution_time = 300
@arshidkv12
arshidkv12 / apigen-hooks.php
Created May 23, 2019 16:49 — forked from tivnet/apigen-hooks.php
Generate list of hooks (for WPGlobus)
<?php
/**
* File: apigen-hooks.php
*
* NOTE: this code is used internally in WPGlobus project.
* It's a W.I.P. - please use it, but do not forget to adapt for your project.
*
* @package WPGlobus\APIGen
* @author Gregory Karpinsky (@tivnet)
*/
@arshidkv12
arshidkv12 / file extr
Last active November 26, 2018 12:49
file ext
<?php
class archive{
protected $handle_write = null;
protected $handle_read = null;
protected $index = 1;
@arshidkv12
arshidkv12 / clean.js
Created October 23, 2018 06:02
clean react native cache
function rn-clean() {
watchman watch-del-all
rm -rf $TMPDIR/react-*
rm -rf $TMPDIR/haste-*
rm -rf $TMPDIR/metro-*
npm start -- --reset-cache
}
@arshidkv12
arshidkv12 / clean.js
Created October 23, 2018 06:02
clean react native cache
function rn-clean() {
watchman watch-del-all
rm -rf $TMPDIR/react-*
rm -rf $TMPDIR/haste-*
rm -rf $TMPDIR/metro-*
npm start -- --reset-cache
}
@arshidkv12
arshidkv12 / errors.php
Last active October 5, 2017 04:26
php errors
<?php ///
define('E_FATAL', E_ERROR | E_USER_ERROR | E_PARSE | E_CORE_ERROR |
E_COMPILE_ERROR | E_RECOVERABLE_ERROR);
define('ENV', 'dev');
//Custom error handling vars
define('DISPLAY_ERRORS', TRUE);
define('ERROR_REPORTING', E_ALL | E_STRICT);
@arshidkv12
arshidkv12 / example-wp-list-table.php
Created March 16, 2017 21:49 — forked from paulund/example-wp-list-table.php
An example code of using the WP_List_Table class. With Pagination.
<?php
/*
* Plugin Name: Paulund WP List Table Example
* Description: An example of how to use the WP_List_Table class to display data in your WordPress Admin area
* Plugin URI: http://www.paulund.co.uk
* Author: Paul Underwood
* Author URI: http://www.paulund.co.uk
* Version: 1.0
* License: GPL2
*/
@arshidkv12
arshidkv12 / nice_woocommerce_gallery.php
Created July 11, 2016 19:40
Make thumbnails replace the main image instead of opening fancybox [wooCommerce]