This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
/* | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License | |
# as published by the Free Software Foundation; either version 2 | |
# of the License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
CONCAT( | |
'UPDATE wp_posts SET post_content = REPLACE(post_content, ' , | |
QUOTE(meta.meta_value) , ', ' , | |
QUOTE(post.guid) , ');' | |
) | |
FROM | |
wp_posts AS post | |
RIGHT JOIN | |
wp_postmeta AS meta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Update comment count | |
* | |
* @see https://github.com/WordPress/WordPress/blob/3.6/wp-includes/comment.php#L1620 | |
*/ | |
function prefix_update_comment_count( $post_id ) { | |
global $wpdb; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$user_query = new WP_User_Query( array( | |
'orderby' => 'ID', | |
'prefix_post_type' => 'blog' | |
) ); | |
$users = $user_query->get_results(); | |
foreach ( $users as $user ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* User query post type | |
* | |
* @param WP_User_Query $query | |
* @see https://github.com/WordPress/WordPress/blob/3.6/wp-includes/user.php#L528 | |
*/ | |
function prefix_user_query_post_type( $query ) { | |
global $wpdb; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function prefix_pronamic_ideal_gateway_icon( $gateways ) { | |
if ( isset( $gateways['pronamic_ideal'] ) ) { | |
$gateways['pronamic_ideal']->icon = get_stylesheet_directory_uri() . '/images/omnikassa.png'; | |
} | |
return $gateways; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT | |
INTO wp_redirection_items ( | |
url , | |
group_id , | |
action_type , | |
action_code , | |
action_data , | |
match_type | |
) | |
SELECT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Google Analytics tracking code per language (WPML) | |
* | |
* @param array $options | |
* @see http://plugins.trac.wordpress.org/browser/google-analytics-for-wordpress/tags/4.3.3/frontend/class-frontend.php#L12 | |
*/ | |
function prefix_ga_init( $options ) { | |
global $yoast_ga; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
jQuery( document ).ready( function( $ ) { | |
var ms_one_day = 1000 * 60 * 60 * 24; | |
var form_id = '1'; | |
var date_format = 'dd-mm-yy'; | |
var field_date_start = $( '#input_' + form_id + '_1' ); | |
var field_date_end = $( '#input_' + form_id + '_2' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! jQuery UI - v1.10.3 - 2013-05-07 | |
* http://jqueryui.com | |
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.autocomplete.js, jquery.ui.menu.js | |
* Copyright 2013 jQuery Foundation and other contributors Licensed MIT */ | |
(function(e,t){function i(t,i){var a,n,r,o=t.nodeName.toLowerCase();return"area"===o?(a=t.parentNode,n=a.name,t.href&&n&&"map"===a.nodeName.toLowerCase()?(r=e("img[usemap=#"+n+"]")[0],!!r&&s(r)):!1):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o?t.href||i:i)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return"hidden"===e.css(this,"visibility")}).length}var a=0,n=/^ui-id-\d+$/;e.ui=e.ui||{},e.extend(e.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32 |