Skip to content

Instantly share code, notes, and snippets.

View bvdr's full-sized avatar
👋
Hello World!

Bogdan Dragomir bvdr

👋
Hello World!
View GitHub Profile
<?php
function mailpoet_enable_wpmail(){
if(class_exists('WYSIJA')){
$model_config = WYSIJA::get('config','model');
$model_config->save(array('allow_wpmail' => true));
}
}
add_action('init', 'mailpoet_enable_wpmail');
@bvdr
bvdr / wp-query-ref.php
Last active December 16, 2015 16:28 — forked from luetkemj/wp-query-ref.php
Wordpress query arguments with description - from WordPress 3.5.1
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(