Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* CUSTOM WP NAV MENU - no walker
*
* @package WordPress
* @subpackage My theme
*
* @details custom replacement menu for wp_nav_menu()
* with a "little" help from :
* David Baker - https://dtbaker.net/
@webaware
webaware / debug-log-not-strict.php
Last active December 23, 2024 02:31
Turn on WordPress' WP_DEBUG_LOG but without E_STRICT. Accompanying blog post: http://snippets.webaware.com.au/snippets/wordpress-wp_debug_log-without-e_strict/
<?php
/*
Plugin Name: Debug Log Not Strict
Plugin URI: https://gist.github.com/webaware/6520892
Description: Turn on WP_DEBUG_LOG but without E_STRICT
Version: 1.4.0
Author: WebAware
Author URI: https://shop.webaware.com.au/
*/
@webaware
webaware / private-debug-log.php
Created February 17, 2013 02:17
Enable WordPress debug log to a private folder not accessible from the web. See http://wordpress.stackexchange.com/q/84132/24260 for details and motivations. NB: currently needs to be manually edited to specify the private folder path;
<?php
/*
Plugin Name: Private Debug Log
Description: Enable debug log to a private folder not accessible from the web
Version: 0.0.1
Author: WebAware
Author URI: http://www.webaware.com.au/
*/
/*
@menzerath
menzerath / backup.php
Last active February 18, 2024 19:33
PHP: Recursively Backup Files & Folders to ZIP-File
<?php
/*
* PHP: Recursively Backup Files & Folders to ZIP-File
* MIT-License - 2012-2018 Marvin Menzerath
*/
// Make sure the script can handle large folders/files
ini_set('max_execution_time', 600);
ini_set('memory_limit', '1024M');