Skip to content

Instantly share code, notes, and snippets.

View bystefu's full-sized avatar
💭
Just quarantined... 🤦‍♂️

Stefu Catalin bystefu

💭
Just quarantined... 🤦‍♂️
View GitHub Profile
@bystefu
bystefu / Wp_Disable_Emojis.php
Last active December 30, 2020 20:40
Wp Disable Emojis
<?php
if (!function_exists('Disable_Emojis')) {
function Disable_Emojis()
{
function removeActionAndFilters()
{
remove_action('wp_head', 'print_emoji_detection_script', 7);
remove_action('admin_print_scripts', 'print_emoji_detection_script');
remove_action('wp_print_styles', 'print_emoji_styles');
remove_action('admin_print_styles', 'print_emoji_styles');
@bystefu
bystefu / Wp_Remove_Dashboard_Metaboxes.php
Created December 30, 2020 20:44
Remove default Metaboxes for first page Admin
<?php
if (!defined("STEFU_LOADED")) {
stopYou();
}
class Panel
{
/*
* prevent __construct
*/
@bystefu
bystefu / Css_helper.php
Last active January 4, 2021 18:20
A little game with PHP MULTYARRAY
<?php
function enqueue_css()
{
$default = $array = array(
array(
'name' => 'Bootstrap',
'id' => 'bootstrap-css',
'url' => 'https://stackpath.bootstrapcdn.com/bootstrap/5.0.0-alpha1/css/bootstrap.min.css',
'version' => 5,
'parent' => NULL,
@bystefu
bystefu / .htaccess
Created January 7, 2021 11:12
Htaccess Disable Cache
# DISABLE CACHING
<IfModule mod_headers.c>
Header set Cache-Control "no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires 0
</IfModule>
<FilesMatch "\.(css|flv|gif|htm|html|ico|jpe|jpeg|jpg|js|mp3|mp4|png|pdf|swf|txt)$">
<IfModule mod_expires.c>
ExpiresActive Off