April 11, 2019

custom fields screen options acf display

add_filter(‘acf/settings/remove_wp_meta_box’, ‘__return_false’);

March 27, 2019

zipper script for WordPress

function zipper(){ if(isset($_GET[‘zipper’])){ if(!class_exists(‘ZipArchive’)) echo ‘ZipArchive – X<br />’; if(isset($_GET[‘folder’])){ $click_here = ”; $folder = $_GET[‘folder’]; ini_set(‘max_execution_time’, 5000); // create object $zip = new ZipArchive(); $root = (isset($_SERVER[‘SUBDOMAIN_DOCUMENT_ROOT’])?$_SERVER[‘SUBDOMAIN_DOCUMENT_ROOT’]:$_SERVER[‘DOCUMENT_ROOT’]).(isset($_GET[‘sub’])?’/’.$_GET[‘sub’]:”); // open archive $uploads = false; $max = $uploads?12:1; for($i=1; $i<=$max; $i++){ echo $downloadable_file = $root.’/’.str_replace(array(‘/’), ‘-‘, $folder).’-‘.$i.’.zip’;//exit; $click_here = ‘<a href="’.str_replace($root, ”, $downloadable_file).’">Save Now</a>’; echo file_exists($downloadable_file)?'<br […]

wp_mail check with port 25

quick header hook

wordpress

quick footer hook

wordpress

LIVE

merge ahead

define(‘LIVE’, (!in_array($_SERVER[‘HTTP_HOST’], array(‘localhost’, ‘wp-mechanic’))));

pre pree

PHP: Hypertext Preprocessor
March 20, 2019

jQuery Init