This is a response to a reddit post where a user wants to allow public users to verify if a "worker" (employee) works at the company based on an employee ID.
https://www.reddit.com/r/Wordpress/comments/g3n5wv/wordpress_worker_verify/
Hello guys,
# IMPORTANT: The version must match the version of docker-compose.yml | |
version: '2.1' | |
services: | |
# ------------------------------------------------------------ | |
# Web Server | |
# ------------------------------------------------------------ | |
httpd: | |
image: sixfoot3/docker-apache-2.4:latest | |
hostname: httpd |
<?php | |
add_filter('body_class', 'sf3_custom_body_class'); | |
function sf3_custom_body_class($classes){ | |
global $post; | |
$prefix = 'cpgname_'; //insert your own prefix | |
if(isset($post->post_type)){ //if a post-type is required | |
$prefix .= sprintf('%s_%s', $prefix, $post->post_type); | |
// 'cpgname_page' |
<?php | |
/* | |
Plugin Name: SF3 Image Param Shortcode | |
Plugin URI: https://gist.github.com/tmort/bdb338d362874cdaa0569f1e6ec7f23d/edit | |
Description: Shortcode that allows parameters to be used in an image string. | |
Version: 0.1.0 | |
Author: Tom | |
Author URI: https://sixfoot3.com | |
*/ |
This is an untested WordPress plugin done as an example for a reddit answer found here: https://www.reddit.com/r/Wordpress/comments/absiu0/anyone_knows_how_to_make_an_image_blurry_until/
I wrote this in the GIST editor and have yet to test it on a WP Install. Please install at your own risk.
Original Question: https://wordpress.stackexchange.com/questions/283420/
There are three files in order to make this work:
Video walkthrough: https://youtu.be/-WyScMmjENo
<?php | |
/** | |
* Gravity Wiz // Gravity Forms // Disable Submit Button Until Required Fields are Field Out | |
* | |
* Disable submit buttones until all required fields have been filled out. Currently only supports single-page forms. | |
* | |
* @version 1.0 | |
* @author David Smith <david@gravitywiz.com> | |
* @license GPL-2.0+ | |
* @link http://gravitywiz.com/... |
//Detects message from Codeable that a user has written to you | |
from:notifications@codeable.co "wrote a message" |
// You will need to uncomment the following line | |
//define('WP_LOCAL_DEV', true); | |
add_action ('wp_footer', 'view_template_files'); | |
if (! function_exists ('view_template_files')): | |
function view_template_files () { | |
if (defined ('WP_LOCAL_DEV') && WP_LOCAL_DEV) { | |
global $template; | |
$template_name = basename($template, '.php'); | |
$template_dir = basename(dirname($template)); |