This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'body_class', function( $classes ) { | |
$restrict_page = ( get_field( 'msp_registration_required' ) ? true : false ); | |
error_log( "before count = " . count( $classes ) ); | |
if ( $restrict_page ) { | |
$classes[] = 'msp-restrict-page'; | |
} | |
error_log( "after count = " . count( $classes ) ); | |
return $classes; | |
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
folder="/var/www/{website}/wp-content/uploads/video" | |
for filename in $folder/*.mov; do | |
if [ -f $filename ]; then | |
ffprobe -hide_banner -v quiet -print_format json -show_format -show_streams $filename > $folder/$(basename -s .mov $filename).json | |
fi | |
done | |
for filename in $folder/*.mp4; do | |
if [ -f $filename ]; then | |
ffprobe -hide_banner -v quiet -print_format json -show_format -show_streams $filename > $folder/$(basename -s .mp4 $filename).json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: ACF Front End Forms | |
Plugin URI: https://navarrojr.com | |
Description: Create forms on the front end of the site from ACF field groups. | |
Version: 0.0.1 | |
Author: Dave Navarro, Jr. | |
Author URI: https://navarrojr.com | |
*/ |
OlderNewer