Search
 
SCRIPT & CODE EXAMPLE
 

CSS

enable gutenberg for post

function shapeSpace_enable_gutenberg_post_ids($can_edit, $post) {
	
	if (empty($post->ID)) return $can_edit;
	
	if (1 === $post->ID) return true;
	
	return $can_edit;
	
}

// Enable Gutenberg for WP < 5.0 beta
add_filter('gutenberg_can_edit_post', 'shapeSpace_enable_gutenberg_post_ids', 10, 2);

// Enable Gutenberg for WordPress >= 5.0
add_filter('use_block_editor_for_post', 'shapeSpace_enable_gutenberg_post_ids', 10, 2);
Comment

PREVIOUS NEXT
Code Example
Css :: ubuntu tor browser verification failed 
Css :: Selection Handler css 
Css :: anchor links scrolling too far 
Css :: block property in css 
Css :: how to make sure your css files are connected on ruby on rails 
Css :: css tips and tricks to handle the complicated stuffs in design part which is helpfull to handle at tha critical time and to deliver requirement to the client to the main resource 
Css :: target css selector 
Css :: const Schema 
Css :: coderbytes 
Css :: Styling based on parent state 
Css :: vertical align x horizontal 
Css :: how to make button clickable in particle.js section 
Css :: empty rulesets css 
Css :: #shadow-root (open) css 
Css :: div nth child 
Css :: padding order nth-child 
Css :: how to change the theme of a website using css 
Css :: enlarge ionicons css 
Css :: disable theme.json css inline styles 
Css :: bold on hover but not add padding or distance 
Css :: wrapped header aura datatable 
Css :: click a list html css 
Css :: foreach and if condition in qweb 
Css :: css battle horizon answer 
Css :: what is css selector 
Css :: import font woff css 
Css :: css root seletor 
Typescript :: ul dots remove 
Typescript :: install typescript using npm 
Typescript :: form submit event typescript 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =