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 ✔
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 ✔
/** | |
* Disabling block editor for widgets. | |
*/ | |
function example_theme_support() { | |
remove_theme_support( 'widgets-block-editor' ); | |
} | |
add_action( 'after_setup_theme', 'example_theme_support' ); |
<!-- | |
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> |
<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> |
The actual step-by-step WordPress / MySQL fix… | |
1. Back up all your stuff first (likely using phpMyAdmin / CPANEL) | |
Before doing any of the following it strongly encouraged to back up all your data and files. Just to be safe. At the very least, your full database and the WordPress config file: wp-config.php | |
2. Note the settings that your WordPress is currently using (from wp-config.php) | |
Specifically, your MySQL database configuration, including DB_NAME, DB_USER, DB_PASSWORD, and also DB_CHARSET and DB_COLLATE | |
// ** MySQL settings - You can get this info from your web host ** // |
/** | |
* Add custom filters. | |
*/ | |
function custom_filters() { | |
$post_type = filter_input( INPUT_GET, 'post_type', FILTER_SANITIZE_STRING ); | |
// Only add filter to post type you want. | |
if ( 'POST_TYPE_NAME' === $post_type ) { |
<?php | |
/** | |
* Modified version of https://core.trac.wordpress.org/attachment/ticket/45985/45985-regular-images.patch patch for testing. | |
* Full credit goes to that patch owner. | |
*/ | |
/** | |
* Add custom `sizes` attribute to responsive image functionality for post content images. | |
* | |
* @since Twenty Nineteen 1.0 |
<?php | |
/** | |
* Modified version of https://core.trac.wordpress.org/attachment/ticket/45985/45985-regular-images.patch patch for testing. | |
* Full credit goes to that patch owner. | |
*/ | |
/** | |
* Add custom `sizes` attribute to responsive image functionality for post content images. | |
* | |
* @since Twenty Nineteen 1.0 |
<?php | |
/** | |
* This snippet is useful while doing migration for the WordPress. | |
* Basically this script will convert the HTML dom into the common Gutenberg block comments, | |
* so the tags like Pagragraph will be converted into the "<!-- wp:paragraph -->SOME DATA<!-- /wp:paragraph -->". | |
* | |
* This script supports paragraph, headings, list tags and many more. | |
*/ | |
/** |
import { useReducer } from 'react'; | |
export function counterReducer(state, action) { | |
if (action.type === 'INCREMENT') { | |
return { | |
count: +state.count + 1 | |
}; | |
} | |
if (action.type === 'DECREMENT') { |