Skip to content

Instantly share code, notes, and snippets.

@adanzilla
adanzilla / Wordpress-No-Guttenberg
Created March 1, 2019 00:16
Deactivate Guttenberg Editor
// disable for posts
add_filter('use_block_editor_for_post', '__return_false', 10);
// disable for post types
add_filter('use_block_editor_for_page', '__return_false', 10);
@adanzilla
adanzilla / Wordpress disables Gutenberg
Created June 1, 2019 19:36
Disables Gutenberg on Wordpress
// disable for posts
add_filter('use_block_editor_for_post', '__return_false', 10);
// disable for post types
add_filter('use_block_editor_for_page', '__return_false', 10);
@adanzilla
adanzilla / gitignore
Created October 17, 2020 16:40
Git Ignore .gitignore Wordpress Project
wp-config.php
wp-admin
wp-includes
wp-content/plugins/*
wp-content/uploads/*
wp-content/themes/*
!wp-content/themes/proyecto
wp-content/themes/proyecto/bower_components
wp-content/themes/proyecto/.sass-cache
@adanzilla
adanzilla / facebook-opengraph
Last active July 8, 2021 18:26
Facebook Open Graph
<meta property="og:url" content="http://www.nytimes.com/2015/02/19/arts/international/when-great-minds-dont-think-alike.html" />
<meta property="og:type" content="article" />
<meta property="og:title" content="When Great Minds Don’t Think Alike" />
<meta property="og:description" content="How much does culture influence creative thinking?" />
<meta property="og:image" content="http://static01.nyt.com/images/2015/02/19/arts/international/19iht-btnumbers19A/19iht-btnumbers19A-facebookJumbo-v2.jpg" />