A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
// https://deluxeblogtips.com/remove-dashboard-widgets-in-wordpress/ | |
add_action('admin_init', 'rw_remove_dashboard_widgets'); | |
function rw_remove_dashboard_widgets() { | |
remove_meta_box('dashboard_right_now', 'dashboard', 'normal'); // right now | |
remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal'); // recent comments | |
remove_meta_box('dashboard_incoming_links', 'dashboard', 'normal'); // incoming links | |
remove_meta_box('dashboard_plugins', 'dashboard', 'normal'); // plugins | |
remove_meta_box('dashboard_quick_press', 'dashboard', 'normal'); // quick press | |
remove_meta_box('dashboard_recent_drafts', 'dashboard', 'normal'); // recent drafts |
<?php | |
/** | |
* Returns a specified ACF field from a parent block | |
* @param string $child_id The ID of the child ACF block | |
* @param string $child_name The name of the child ACF block | |
* @param string $parent_name The name of the parent ACF block | |
* @param string $field The name of the parent's custom field to return | |
* @param boolean $return_first If $field is an array, optionally return the first item. | |
*/ | |
function get_field_from_parent($child_id, $child_name, $parent_name, $field, $return_first = false) { |
#!/bin/sh | |
# Originally pulled from: https://robots.thoughtbot.com/shell-script-suggestions-for-speedy-setups | |
# Exit if any subcommand fails | |
set -e | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
YELLOW='\033[0;33m' |
{ | |
"key": "ctrl+shift+j", | |
"command": "selectNextSuggestion", | |
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" | |
}, | |
{ | |
"key": "ctrl+shift+k", | |
"command": "selectPrevSuggestion", | |
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus" | |
} |
// Move Yoast Meta Box to bottom | |
function yoasttobottom() { | |
return 'low'; | |
} | |
add_filter( 'wpseo_metabox_prio', 'yoasttobottom'); |
function collapse_yoast_matabox() | |
{ | |
if (!class_exists('WPSEO_Metabox')) { | |
return; | |
} | |
echo /*html*/ ' | |
<script> | |
document.addEventListener("DOMContentLoaded", | |
function(event) { | |
document.querySelector(".yoast.wpseo-metabox").classList.add("closed"); |
<?php | |
/** | |
* Register custom rest fields | |
*/ | |
add_action( 'rest_api_init', 'register_custom_fields' ); | |
/** | |
* Register rest fields and endpoint | |
* |