Skip to content

Instantly share code, notes, and snippets.

☕️

Kurt Zenisek KZeni

☕️
Block or report user

Report or block KZeni

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View job-aggregate-category-list.php
ob_start();
?>
<div class="job-browse-block">
<?php
$count_posts = wp_count_posts( 'job_listing' )->publish;
$today = getdate();
//$query = new WP_Query( 'year=' . $today['year'] . '&monthnum=' . $today['mon'] . '&day=' . $today['mday'] );
$args = array(
'post_type' => 'job_listing',
'date_query' => array(
View jobs-customize.php
$shortcode = '[jobs ';
if(isset($_GET['job_listing_category']) && $_GET['job_listing_category'] != ''){
echo '<p><a href="'. get_permalink(get_option('job_manager_jobs_page_id')).'" class="button btn">&larr; Back to All Job Listings</a></p>';
echo '<h3>'.ucwords(str_replace('-',' ',sanitize_text_field($_GET['job_listing_category']))).'</h3>';
$shortcode.= 'categories="'.sanitize_text_field($_GET['job_listing_category']).'" ';
}
$shortcode.= ']';
echo do_shortcode($shortcode);
echo "
<script>
View bad-shortcode-example.php
<?php
//About Us Team Shortcode
function aboutus_team_member() {
global $post;
if(get_post_type($post) === 'page'){
ob_start();
$aboutus_team_args = array(
'post_type' => 'our-team',
'posts_per_page' => -1
);
@KZeni
KZeni / index.php
Last active May 17, 2019
Simple Tooltip Patch to add Vertical Alignment setting
View index.php
<?php
/*
Plugin Name: Simple Tooltips
Description: Easily add tooltips to your wordpress site. You can define tooltip color settings in <strong>Settings > Simple Tooltips</strong>
Version: 2.1.3
Author: Justin Saad
Author URI: http://www.clevelandwebdeveloper.com
License: GPL2
*/
View reports.php
<?php
/*
Plugin - WP ADA Compliance Check
functions to support dipslay or reports and reference pages
*/
/**********************************************
REFRESH REPORT PAGE
********************************************/
function wp_ada_compliance_basic_refresh_report_page(){
@KZeni
KZeni / recaptcha.php
Created Apr 24, 2019
Contact Form 7 reCAPTCHA v3 improvements to add threshold adjustments to the settings page.
View recaptcha.php
<?php
add_action( 'wpcf7_init', 'wpcf7_recaptcha_register_service', 10, 0 );
function wpcf7_recaptcha_register_service() {
$integration = WPCF7_Integration::get_instance();
$integration->add_category( 'captcha',
__( 'CAPTCHA', 'contact-form-7' )
);
View show errors.php
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
@KZeni
KZeni / .htaccess
Created Nov 8, 2018
Browser Cache Rules
View .htaccess
# BEGIN Browser Cache
<IfModule mod_mime.c>
AddType text/css .css
AddType text/x-component .htc
AddType application/x-javascript .js
AddType application/javascript .js2
AddType text/javascript .js3
AddType text/x-js .js4
AddType text/html .html .htm
AddType text/richtext .rtf .rtx
You can’t perform that action at this time.