Skip to content

Instantly share code, notes, and snippets.

View VR51's full-sized avatar

Lee VR51

View GitHub Profile
@VR51
VR51 / functions.php
Last active June 18, 2020 19:00
WordPress Privacy Page Shortcode
<?php
function privacy_page_sc_vr51( $atts ) {
# Creates a Privacy Page link shortcode.
# Use as [privacy title="Privacy Page Title"] or [privacy]
# Default page title is Privacy Page.
# Page link points to the Privacy Page set in Dashboard > Privacy.
# The privacy page will only display if the page is public (status = publish).
# Place this snippet into the site theme's functions.php file, a custom functions plugin or some other
# suitable place.
@VR51
VR51 / WP Job Board Daily Job Refresh
Created February 6, 2015 01:22
Refreshes the date of WP Job Board job posts. Any job post older than 2 months will be automatically republished with the date current at the time the script runs.
<?php
/**
* Refresh WP Job Board job publish dates daily
* VR51.com & JournalXtra.com
* Add to your child theme's functions.php
**/
if (class_exists('Wpjb_Model_Job')) {
/* Add daily cron job to run the vr_daily_job_refresh hook */