The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
/** | |
* Exclude certain WordPress database settings from being migrated when pushing or pulling | |
* with Migrate-DB-Pro | |
* | |
* Useful when developing locally and wanting to push or pull database settings between envirnments | |
* USE CAUTION! - Must be used with https://github.com/deliciousbrains/wp-migrate-db-pro-tweaks/ | |
*/ | |
function preserved_options( $options ) { | |
$options[] = 'blog_public'; // discourage search engines setting | |
$options[] = 'bit51_bwps'; // Better WordPress Security Settings |
<?php | |
if ( !function_exists('your_pagination')) : | |
function your_pagination($custom_query) { | |
if ( !$current_page = get_query_var( 'paged' ) ) $current_page = 1; | |
$permalinks = get_option( 'permalink_structure' ); | |
if( is_front_page() ) { | |
$format = empty( $permalinks ) ? '?paged=%#%' : 'page/%#%/'; | |
} else { |
/** | |
* Borrowed from https://github.com/addyosmani/jquery-ui-bootstrap | |
* Styles the datepicker popup for gravityforms used with bootstrap | |
*/ | |
/* | |
* jQuery UI Datepicker | |
* | |
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) | |
* Dual licensed under the MIT or GPL Version 2 licenses. | |
* http://jquery.org/license |
<?php | |
// Beginning of File | |
begin_template( __FILE__ ); | |
// End of File | |
end_template( __FILE__ ); |
<?php | |
/* | |
* Plugin Name: Commercial Client | |
* Plugin URI: http://pento.net/ | |
* Description: A sample client plugin for showing updates for non-WordPress.org plugins | |
* Author: pento | |
* Version: 0.1 | |
* Author URI: http://pento.net/ | |
* License: GPL2+ | |
*/ |