# Add bash path to Plex path.
set path = ($path /usr/local/bin)
# Sleep for a pseudorandom period (up to 10 seconds) to limit the number of instances that start at once
sleep `echo $$%10 | bc`
/root/comchap/comcut --ffmpeg=/usr/local/bin/ffmpeg --comskip=/root/comskip/comskip --lockfile=/tmp/comchap.lock --comskip-ini=/usr/local/etc/comskip.ini "$1"
HandBrakeCLI -i "$1" -o "$1".mkv --format mkv --encoder x264 --quality 20 --loose-anamorphic --decomb fast --x264-preset fast --h264-profile high --h264-level 4.1
find /mnt -name "*.ts" -not -path "*/\.*" -delete
View assets.php
// ^ do not include this, it's only for code highlighting purposes
// Update the method/function in wp-job-manager-field-editor/classes/admin/assets.php with the function/method below
function death_to_sloppy_devs( $hook ){
// Return if not on plugin page, which some devs fail to check!
if ( empty( $hook ) || ( ! empty( $hook ) && ! in_array( $hook, $this->hooks ) ) ) return;
View functions.php
// ^ do not include this, there should only be one of these at the top of the functions.php file!
// MAKE SURE you remove any configuration created using Field Editor before adding this, goto the field and click "Delete",
// then add this to your child theme's functions.php file
add_filter( 'submit_job_form_fields', 'workscout_frontend_change_job_header_image_to_company', 11 );
function workscout_frontend_change_job_header_image_to_company( $fields ){
View functions.php
// ^ don't include this, there should ONLY be one of these at the top of your child theme's functions.php file
// Replace any instances of METAKEY with the meta key you want to use this for
add_filter( 'field_editor_output_as_args_METAKEY', 'smyles_customize_METAKEY_args_output', 10, 3 );
function smyles_customize_METAKEY_args_output( $args, $field_value, $listing_id ){
// No need to go further if there isn't a value for METAKEY
if( empty( $field_value ) ){
return $args;
View functions.php
add_filter( 'job_manager_packages_admin_required_packages_frontend', 'smyles_packages_demo_admin_require_packages' );
function smyles_packages_demo_admin_require_packages(){
return true;
View app\Register\Assets\Popup.php
namespace WP_Gistpen\Register\Assets;
use WP_Gistpen\Model\Language;
* Registers the web assets of the plugin.
* @package WP_Gistpen
* @author James DiGioia <>
View functions.php
// assuming the non-standard meta key is `job_import_id` (this filter is for Admin Side)
add_filter( 'job_manager_visibility_permalink_get_field_value_job_import_id_is_hidden_meta', 'smyles_job_import_id_permalink_not_hidden' );
function smyles_job_import_id_permalink_not_hidden(){
return false;
// This is for frontend handling
add_filter( 'job_manager_visibility_permalink_frontend_get_field_value_job_import_id', 'smyles_job_import_id_frontend', 10, 4 );
View functions.php
// This filter handles preventing fatal error from empty value in post_content
add_filter( 'submit_resume_form_save_resume_data', 'submit_listing_allow_empty_resume_content', 99999, 5 );
* Allow empty Resume Content (resume_content) field in WP Job Manager
* If you're using the Field Editor plugin, and want to configure the Resume Content (resume_content meta key) field
* to only show for specific packages, you will need this code to prevent a white screen of death, as the core
View functions.php
add_filter( 'submit_job_form_wp_editor_args', 'smyles_submit_job_form_wp_editor_args' );
function submit_job_form_wp_editor_args( $args ){
// @see
// change quicktags to true
$args['quicktags'] = true;
// change rows to 10 (default is 8)
$args['textarea_rows'] = 10;
View functions.php
// Requires WordPress 4.4+
add_filter( 'register_taxonomy_args', 'smyles_set_job_tags_hierarchical', 10, 3);
function smyles_set_job_tags_hierarchical( $args, $taxonomy, $object_type ){
if( $taxonomy === 'job_listing_tag' ){
$args['hierarchical'] = true;