It is loaded by default by /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist.
If you run
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
<?php | |
/** | |
* Block Users JSON API | |
*/ | |
add_filter('rest_endpoints', function ($endpoints) { | |
if (isset($endpoints['/wp/v2/users'])) { | |
unset($endpoints['/wp/v2/users']); | |
} |
# convert mov to mp4 | |
# https://medium.com/macoclock/convert-mov-to-mp4-on-a-mac-c9c93b730d84 | |
brew install ffmpeg | |
ffmpeg -i demo.mov -vcodec h264 demo.mp4 | |
# convert DoVi mkv to DoVi mp4 | |
# will only convert first video and audio stream and will skip subtitles | |
# https://www.reddit.com/r/ffmpeg/comments/qe7oq1/comment/i45kbpy/?utm_source=share&utm_medium=web2x&context=3 | |
ffmpeg -i input.mkv -c copy -strict unofficial output.mp4 |
/* Add Google Tag Manager javascript code as close to | |
the opening <head> tag as possible | |
=====================================================*/ | |
function add_gtm_head(){ | |
?> | |
<!-- Google Tag Manager --> | |
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= |
SELECT meta_value | |
FROM wp_fanatic_shop_postmeta | |
WHERE meta_key = '_sku' | |
AND meta_value != '' | |
GROUP BY meta_value HAVING COUNT(meta_value) > 1 |
<?php | |
/** | |
* Plugin Name: Convert ACF PHP to JSON | |
* Description: Convert Advanced Custom Fields Pro configuration from PHP to JSON. | |
*/ | |
namespace ConvertAcfPhpToJson; | |
/** | |
* Add submenu item under 'Custom Fields' |
# Stolen from here https://www.tylernichols.com/apple/speed-up-mouse-tracking-on-mac-os-x | |
defaults write -g com.apple.mouse.scaling 6.0 |
It is loaded by default by /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist.
If you run
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
Default permissions, just need an APP id / APP secret
https://developers.facebook.com/tools/explorer/
i) Choose the correct APP, and click on Get Token > Get User Access Token
ii) Copy the returned token
<?php | |
/** | |
* This will hide the Divi "Project" post type. | |
* Thanks to georgiee (https://gist.github.com/EngageWP/062edef103469b1177bc#gistcomment-1801080) for his improved solution. | |
*/ | |
add_filter( 'et_project_posttype_args', 'mytheme_et_project_posttype_args', 10, 1 ); | |
function mytheme_et_project_posttype_args( $args ) { | |
return array_merge( $args, array( | |
'public' => false, | |
'exclude_from_search' => false, |