css funnction for reload page at at a media tag code example
Example 1: make page refresh on top in react js
onUpdate={window.scrollTo(0, 0)}
componentDidMount() {
window.scrollTo(0, 0)
}
Example 2: How to disable Gutenberg / block editor for certain post types
add_filter( 'use_block_editor_for_post_type', 'prefix_disable_gutenberg', 10, 2 );
function prefix_disable_gutenberg( $current_status, $post_type ) {
if ( in_array( $post_type, array( 'page', 'post' ) ) ) {
return false;
}
return $current_status;
}