Allow SVG Files Upload

/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading

Copyright Footer

if ($link === ‘true’ || $link === ‘yes’ || $link === ‘y’) { echo ‘© ‘ . get_option( ‘blogname’ ) . ‘ — Part of the Pyramid Healthcare Family | Call to Get Help: ‘ . do_shortcode(‘[phone_number link=”true”]’); } else…Continue reading

LegitScript Badge

$lg_id = get_field(‘legitscript_id’, ‘option’); if ($align == ‘right’ || $align == ‘center’ || $align == ‘left’) { echo ‘ ‘; } else { echo ‘‘; }Continue reading

Automatic lazy rendering exclusion

// add_filter( ‘rocket_lrc_optimization’, ‘__return_false’ , 999 ); add_filter( ‘rocket_lrc_exclusions’, function( $exclusions ) { $exclusions[] = ‘breakdance”‘; return $exclusions; } );Continue reading

Gravity Forms – Entry Count Shortcode

/** * Gravity Wiz // Gravity Forms // Entry Count Shortcode * * Extends the [gravityforms] shortcode, providing a custom action to retrieve the total entry count and * also providing the ability to retrieve counts by entry status (i.e.…Continue reading