Skip to content

Instantly share code, notes, and snippets.

@JRyven
JRyven / functions.php
Created December 29, 2021 02:30
Animation Box for WordPress - Creates tiles with never-duplicating, stacking image animations using OOP PHP and CSS only
<?php
class Animation_Box {
public $assets;
public $used_assets;
public function __construct( $frank_assets ){
$this->assets = $frank_assets;
$this->Animation_Box_shortcodes();
@JRyven
JRyven / functions.php
Created February 17, 2022 18:20
WooCommerce Automatically Create and Apply Discount Coupons Based on WordPress User Role
<?php
/* Role_Based_Pricing
*
*
*
*/
/* Role_Based_Pricing_Get_User
@JRyven
JRyven / wp-config.php
Created July 21, 2022 17:16
WordPress Debugging Options
// general PHP and WordPress warnings, error messages and status information
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'WPS_DEBUG', true );
// script and style
define( 'WPS_DEBUG_SCRIPTS', true );