This file contains 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
header("HTTP/1.0 404 Not Found - Archive Empty"); | |
$wp_query->set_404(); | |
require TEMPLATEPATH.'/404.php'; | |
exit; |
This file contains 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 list_hooked_functions($tag=false){ | |
global $wp_filter; | |
if ($tag) { | |
$hook[$tag]=$wp_filter[$tag]; | |
if (!is_array($hook[$tag])) { | |
trigger_error("Nothing found for '$tag' hook", E_USER_WARNING); | |
return; | |
} | |
} else { |
This file contains 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
" Vundle instalatu lehengo | |
" git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
set nocompatible " be iMproved, required | |
filetype off " required | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required |
This file contains 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
<project name="xxx" default="dist"> | |
<target name="_init_wp_serialize"> | |
<adhoc-task name="wp-serialize-clean"><![CDATA[ | |
class Wp_Serialice_Update extends Task { | |
private $file; | |
function setFile($file) { | |
$this->file = $file; | |
} |
This file contains 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
# Ignore everything in the root except the "wp-content" directory. | |
/* | |
!.gitignore | |
!wp-content/ | |
!build.xml | |
!build_rsync_exclude | |
# Ignore everything in the "wp-content" directory, except the "plugins" and "themes" directories. | |
wp-content/* | |
!wp-content/plugins/ |
This file contains 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 | |
class urlfinder { | |
var $urls = array(); | |
var $visited = array(); | |
var $domain; | |
public function get ($url, $domain = '') { | |
if (in_array($url, $this->visited)) { |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="wordpress" default="deploy"> | |
<target name="deploy"> | |
<propertyprompt propertyName="rsync.type" promptText="Deploy? (test or yes)" defaultValue="test" /> | |
<if> | |
<equals arg1="${rsync.type}" arg2="yes" /> | |
<then> | |
<exec command="rsync --exclude-from='rsync_exclude' -e 'ssh -p 333' --delete-after -razv . sshuser@host.com:/final/path" outputProperty="info" /> |
This file contains 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
SET FOREIGN_KEY_CHECKS = 0; | |
drop table if exists customers; | |
drop table if exists orders; | |
drop table if exists order_details; | |
SET FOREIGN_KEY_CHECKS = 1; |
This file contains 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 | |
// remove plugin default integration | |
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); | |
remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); | |
// disable breadcrumbs (optional) | |
remove_action( 'woocommerce_before_main_content','woocommerce_breadcrumb', 20, 0); | |
// add defatul shop layaout | |
add_action('woocommerce_before_main_content', 'my_theme_wrapper_start', 10); |
This file contains 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
# https://github.com/scrooloose/syntastic | |
let g:syntastic_always_populate_loc_list = 0 | |
let g:syntastic_auto_loc_list = 0 | |
let g:syntastic_check_on_open = 0 | |
let g:syntastic_check_on_wq = 0 | |
let g:loaded_syntastic_php_phpcs_checker = 0 | |
let g:loaded_syntastic_php_phplint_checker = 0 | |
let g:loaded_syntastic_php_phpmd_checker = 0 |
OlderNewer