This page lists my personal preferences to set up proper command line for Mac OS X.
Current default for Mac OS X Catalina, offers much better customizations that Bash.
chsh -s /bin/zsh
| ############ WordPress #################### | |
| # Disable logging for favicon and robots.txt | |
| location = /favicon.ico { | |
| try_files /favicon.ico @empty; | |
| access_log off; | |
| log_not_found off; | |
| expires max; | |
| } |
| // Remove init rest routes | |
| remove_action( 'rest_api_init', 'create_initial_rest_routes', 0 ); | |
| // Remove oembed rest routes | |
| function remove_json_api () { | |
| // Remove the REST API lines from the HTML Header | |
| remove_action( 'wp_head', 'rest_output_link_wp_head', 10 ); | |
| remove_action( 'wp_head', 'wp_oembed_add_discovery_links', 10 ); |
I felt the importance of directly editing a file from a DigitalOcean droplet on my Ubuntu Server. I research on the internet and made a way to do it.
| <?php | |
| // Standard API query arguments | |
| $args = array( | |
| 'orderby' => 'title', | |
| 'per_page' => 3 | |
| ); | |
| // Put into the `add_query_arg();` to build a URL for use | |
| // Just an alternative to manually typing the query string | |
| $url = add_query_arg( $args, rest_url('wp/v2/posts') ); |
| <?php | |
| /********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/ | |
| /* Change Yoast SEO Prev/Next URL on some pages | |
| * Credit: Yoast Team | |
| * Last Tested: Jun 10 2017 using Yoast SEO 4.9 on WordPress 4.8 | |
| */ | |
| add_filter( 'wpseo_next_rel_link', 'custom_change_wpseo_next' ); |
Find the Discord channel in which you would like to send commits and other updates
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!