Skip to content

Instantly share code, notes, and snippets.

View Lovor01's full-sized avatar
🏠
Working from home

Lovro Hrust Lovor01

🏠
Working from home
  • makeITeasy
  • Zagreb
View GitHub Profile
@ryanwelcher
ryanwelcher / theme.json
Created February 8, 2022 17:30
When adding theme.json to an existing Classic Theme, these settings will stop the default color and typography controls from being enabled.
{
"$schema": "http://schemas.wp.org/trunk/theme.json",
"version": 2,
"settings": {
"layout": {
"contentSize": "750px"
},
"color": {
"background": false,
"custom": false,
@mehrshaddarzi
mehrshaddarzi / page.php
Last active November 15, 2021 16:54
get_views in wp_list_table
<?php
namespace WP_Statistics\Actions;
/**
* Class WP_Statistics_Actions
*/
class WP_Statistics_Actions {
/**
* WP_List_Table object
@bisubus
bisubus / ES5-ES6-ES2017-ES2019 omit & pick
Last active April 13, 2024 21:03
ES5/ES6/ES2017/ES2019 omit & pick
@MikeNGarrett
MikeNGarrett / wp-config.php
Last active April 26, 2024 10:15
All those damned wp-config constants you can never remember.
<?php
// PHP memory limit for this site
define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // Increase admin-side memory limit.
// Database
define( 'WP_ALLOW_REPAIR', true ); // Allow WordPress to automatically repair your database.
define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true ); // Don't make database upgrades on global tables (like users)
// Explicitely setting url