Skip to content

Instantly share code, notes, and snippets.

@overclokk
overclokk / nav-menu-exporter-importer.php
Last active January 17, 2019 10:45 — forked from raynov/nav-menu-exporter-importer.php
[WordPress Plugin] Nav Menu Exporter and Importer / Export and Import nav menus. Requires WordPress Importer plugin. Tested up to 4.7 - It works with, taxonomies, post_type and custom items.
<?php
/*
Plugin Name: Nav Menu Exporter and Importer
Description: Export and Import nav menus. Requires WordPress Importer plugin
Author: hissy, megumi themes
Version: 0.1
Text Domain: nav-menu-exporter-importer
License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
@overclokk
overclokk / wp-new-user.php
Last active November 21, 2017 14:32 — forked from jawinn/CreateWordpressUser.php
Create WordPress Admin User from PHP
<?php
/**
* ADD NEW ADMIN USER TO WORDPRESS
*
* Put this file in your WordPress root directory and run it from your browser.
* Add wp-new-user.php after your domain url.
* Delete it when you're done.
*
* @link https://gist.github.com/overclokk/e63c15eb274532b68502685dc2952d26
* @since 1.0.0
@overclokk
overclokk / index.php
Created March 14, 2015 15:46
ItalyStrap index.php with pagination for article
<?php
/**
* The main template file.
*
* This is an example of a custom index page
* In your home page will view a bootstrap slideshow with Custom Post Type "Prodotti" on top
* If CPT Prodotti is empty BT slide won't be showing
* In new CPT editor check meta box top-left if you want to show the new image product
* The CPT must have a feautured image
*
@overclokk
overclokk / dipendenza.php
Last active August 29, 2015 13:56
Snippets utili per caricare correttamente jquery su wordpress e snippets per il corretto utilizzo senza errori
<?php
wp_enqueue_script( 'mio-script', $src, array('jquery','scriptaculous'), $ver, $in_footer );