These days if you want to install a different version of node you do it this way:
First search for your desired package:
brew search node
This might give you the follow results:
heroku/brew/heroku-node ✔
| <html> | |
| <body> | |
| <a href="https://developer.wordpress.org/block-editor/how-to-guides/themes/create-block-theme/">https://developer.wordpress.org/block-editor/how-to-guides/themes/create-block-theme/</a> | |
| </body> | |
| </html> |
| <!-- | |
| Just replace your audio file's name with `file_example_MP3_700KB.mp3` given in below code. | |
| Refs: | |
| - https://stackoverflow.com/questions/29593733/i-want-to-stop-skip-30-seconds-on-audio-in-html | |
| - https://developer.mozilla.org/en-US/docs/Web/Guide/Audio_and_video_delivery/Cross-browser_audio_basics | |
| - https://www.w3schools.com/tags/ref_av_dom.asp | |
| --> | |
| <!DOCTYPE html> |
| /** | |
| * Disabling block editor for widgets. | |
| */ | |
| function example_theme_support() { | |
| remove_theme_support( 'widgets-block-editor' ); | |
| } | |
| add_action( 'after_setup_theme', 'example_theme_support' ); |
These days if you want to install a different version of node you do it this way:
First search for your desired package:
brew search node
This might give you the follow results:
heroku/brew/heroku-node ✔
| <?php | |
| /** | |
| * Sometime we need to take input from user with Field Manager's TextArea field, FM is using sanitize_text_field](https://api.fieldmanager.org/source-class-Fieldmanager_Field.html#123) | |
| * So below is the code to bypass or use your own validation logic. | |
| */ | |
| $fm = new \Fieldmanager_TextArea( | |
| array( | |
| 'name' => '_vk_videoembed_manual', | |
| 'sanitize' => 'validate_embed_field', // Link your own validation function here. |
| /** | |
| * Below is the small trick to fix conflicts between FieldManager's Autocomplete, Datepicker and RichText_Area with Gutenberg block editor. | |
| */ | |
| $( window ).load( function() { | |
| // NOTE: This is fix for fieldmanager datepicker and autocomplete. | |
| // Ref: https://github.com/alleyinteractive/wordpress-fieldmanager/issues/713 . | |
| if ( typeof fm !== "undefined" ) { | |
| if ( typeof fm.datepicker !== "undefined" ) { |
| <?php | |
| /** | |
| * Some time we get in situation where we have to replace specific string from whole site, | |
| * Like if you are using WooCommerce for donation purpose and you want to display | |
| * `donation` text in place of `order` text then I have ideal way to do this by below code. | |
| */ | |
| /** | |
| * Filters text with its translation. |
| // JUST run below code in your browser's console, in the browser's tab where PR is open. | |
| var x = document.getElementsByClassName("js-details-container"); | |
| var i; | |
| for (i = 0; i < x.length; i++) { | |
| x[i].className = x[i].className.replace(/\bDetails--on\b/g, ""); | |
| x[i].className = x[i].className.replace(/\bopen\b/g, ""); | |
| } |
| <?php | |
| /** | |
| Details: Basically This plugin is providing support of Query Monitor with HyperDB. | |
| */ | |
| /** | |
| Warning: This plugin file is partially working, you must try this first on development environment and check everything and then only use this for Production. | |
| Warning: USE THIS AT YOUR OWN RISK, Thank You! | |
| */ |
| <?php | |
| /** | |
| * Plugin Name: All Options Limit for WordPress | |
| * Description: Provides warnings and notifications for wp_options exceeding limits. | |
| * Author: Vishal | |
| * License: GPL version 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html | |
| */ | |
| /** |