Skip to content

Instantly share code, notes, and snippets.

View DJIO's full-sized avatar

Dionizio Bach | DJIO DJIO

View GitHub Profile
@hlashbrooke
hlashbrooke / functions.php
Last active March 28, 2020 03:56
Modify Bible version used by Bible Readings for Seriously Simple Podcasting
<?php
add_filter( 'ssp_bible_readings_version', 'my_bible_version', 10, 2 );
function my_bible_version ( $version, $episode_id ) {
$version = 'NKJV'; // All available versions are listed here: https://www.biblegateway.com/versions/
return $version;
}
?>
@hlashbrooke
hlashbrooke / functions.php
Last active January 25, 2020 19:20
Seriously Simple Speakers: Rename the 'Speakers' label to something else. In this example I have renamed the 'Speakers' to 'Guests' in both the plural and singular instances - you can make those labels anything you want by editing this code and adding it to your theme's functions.php file or a functionality plugin.
<?php
add_filter( 'ssp_speakers_plural_label', 'ssp_speakers_plural_label_custom' );
function ssp_speakers_plural_label_custom ( $label ) {
return 'Guests';
}
add_filter( 'ssp_speakers_single_label', 'ssp_speakers_single_label_custom' );
function ssp_speakers_single_label_custom ( $label ) {
return 'Guest';
}
@BFTrick
BFTrick / style.css
Created May 5, 2016 22:02
Style WooCommerce Add to Cart Buttons
.single-product .product .single_add_to_cart_button.button{
background-color: #333333;
color: #FFFFFF;
}
.woocommerce .product .add_to_cart_button.button{
background-color: #333333;
color: #FFFFFF;
}
@keesiemeijer
keesiemeijer / shortcode-regex-finder.php
Last active January 17, 2018 19:45
Shortcode Regex Finder
<?php
/**
* Plugin Name: Shortcode Regex Finder
* Plugin URI:
* Description: This plugin creates the regex WordPress would use to find a specific shortcode in content.
* Author: keesiemijer
* License: GPL v2
* Version: 1.0
* Text Domain: shortcode-regex-finder
*/
@adriano
adriano / Contract Killer 3.md
Last active June 1, 2020 12:57 — forked from malarkey/Contract Killer 3.md
Portuguese translation of original text written by Andy Clarke. / Tradução para português do texto original escrito por Andy Clarke.

Contrato Arrasador 3

Atualizado em: 11/07/2012

Entre nós [nome da empresa] e você [nome do cliente]

Sumário:

Nós faremos o melhor para satisfazer suas necessidades e atender suas expectativas, mas é importante registrar tudo por escrito para que todos conheçam suas responsabilidades (quem faz o quê) e saibam o que acontece quando algo dá errado. Neste contrato você não encontrará termos jurídicos complicados ou textos longos e incompreensíveis. Nós não temos interesse em fazê-lo assinar algo que poderá se arrepender depois. O que nós queremos é o melhor para os dois lados, agora e no futuro.

@thefuxia
thefuxia / plugin-class-demo.php
Last active April 11, 2024 13:50
Plugin Class Demo
<?php # -*- coding: utf-8 -*-
/**
* Plugin Name: Plugin Class Demo
* Description: How I am using the base class in plugins.
* Plugin URI:
* Version: 2012.09.29
* Author: Fuxia Scholz
* License: GPL
* Text Domain: plugin_unique_name
* Domain Path: /languages
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@bgallagh3r
bgallagh3r / wp.sh
Last active March 24, 2024 03:12
Wordpress: Bash Install Script -- Downloads latest WP version, updates wp-config with user supplied DB name, username and password, creates and CHMOD's uploads dir, copies all the files into the root dir you run the script from, then deletes itself!
#!/bin/bash -e
clear
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "Database Name: "
read -e dbname
echo "Database User: "
read -e dbuser
echo "Database Password: "
@BronsonQuick
BronsonQuick / random_testimonial_widget.php
Created March 4, 2012 06:46
A WordPress widget to generate random Testimonials from the Testimonials Custom Post Type
<?php if( ! class_exists( 'Testimonials_Widget' ) ) :
/**
* Create a widget to display a random testimonial post.
* Refer to https://gist.github.com/1971046 and https://gist.github.com/1971054 for the Custom Post Type and Meta Box Setup
*
* @since 1.0
*/
class Testimonials_Widget extends WP_Widget {
function Testimonials_Widget() {