Skip to content

Instantly share code, notes, and snippets.

View EugeneKwasny's full-sized avatar
🌴
Working remotely

Eugene K EugeneKwasny

🌴
Working remotely
View GitHub Profile
@EugeneKwasny
EugeneKwasny / r-debug.php
Created December 10, 2021 12:23 — forked from Rarst/r-debug.php
R Debug (set of dump helpers for debug)
<?php
/*
Plugin Name: R Debug
Description: Set of dump helpers for debug.
Author: Andrey "Rarst" Savchenko
Author URI: https://www.rarst.net/
License: MIT
*/
@EugeneKwasny
EugeneKwasny / pagenavi html
Created January 15, 2018 17:02 — forked from dmassiani/pagenavi html
Change html for wp pagenavi
######################
# Change html pagenavi for transform like bootstrap
######################
//attach our function to the wp_pagenavi filter
add_filter( 'wp_pagenavi', 'wd_pagination', 10, 2 );
//customize the PageNavi HTML before it is output
function wd_pagination($html) {
$out = '';
<?php if ( ! defined( 'ABSPATH' ) ) { die( 'Tranquility - the highest manifestation of power!' ); }
class Widget_Online_Support extends WP_Widget {
/**
* Widget constructor.
*/
private $options;
private $prefix;
function __construct() {
@EugeneKwasny
EugeneKwasny / sanitize_checkbox.php
Created March 20, 2016 00:43 — forked from saas786/sanitize_checkbox.php
Sanitization of customizer controls
/*
* Sanitize Checkbox
*/
// Source: https://github.com/FlagshipWP/flagship-library/blob/develop/customizer/classes/customizer-base.php
/**
* Sanitize a checkbox to only allow 0 or 1
*
* @since 1.2.0
* @access public