ghmsnnip (copy)

!function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version=’2.0′; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,’script’, ‘https://connect.facebook.net/en_US/fbevents.js’); fbq(‘init’, ‘753815076394055’); fbq(‘track’, ‘PageView’);Continue reading

Prevent Tasty Links inside Tasty Recipes

add_action( ‘init’, function() { // Remove Tasty Links from Tasty Recipes description, notes, ingredients, and instructions. remove_filter( ‘tasty_recipes_the_content’, array( ‘Tasty_LinksIntegrationsTasty_Recipes’, ‘filter_tasty_recipes_content’ ) ); });Continue reading

Require 2FA for all users

add_filter( ‘two_factor_enabled_providers_for_user’, function( $providers ) { if ( empty( $providers ) && class_exists( ‘Two_Factor_Email’ ) ) { $providers[] = ‘Two_Factor_Email’; } return $providers; } );Continue reading

Allow ICO files upload

add_filter( ‘upload_mimes’, function ( $mimes ) { // By default, only administrator users are allowed to add ICO files. // To enable more user types edit or comment the lines below but beware of // the security risks if you…Continue reading

Pin Headline Analyzer

add_action( ‘admin_enqueue_scripts’, ‘aioseo_editor_pin_styles’ ); function aioseo_editor_pin_styles() { $custom_css = ‘@media (min-width: 782px){.interface-complementary-area-header .components-button.has-icon { display: flex !important; }}’; wp_add_inline_style( ‘wp-edit-post’, $custom_css ); }Continue reading