define('WP_MEMORY_LIMIT', '256M'); define( 'WP_POST_REVISIONS', 3 ); define('DISALLOW_FILE_EDIT', true); define( 'FORCE_SSL_ADMIN', true ); define( 'WP_ALLOW_REPAIR', trueread more...
//Hide categories from WordPress function exclude_category( $query ) { if ( $query->is_home() && $query->is_main_query() )read more...
if( !function_exists('redirect_404_to_homepage') ){ add_action( 'template_redirect', 'redirect_404_to_homepage' ); function redirect_404_to_homepage(){ if(is_404()): wp_safe_redirect( home_url('/') ); exit; endif;read more...
// Disable Gutenberg editor. add_filter('use_block_editor_for_post_type', '__return_false', 10); read more...
add_action( 'wp_enqueue_scripts', 'ets_deactivate_pass_strength_meter', 10 ); function ets_deactivate_pass_strength_meter() { wp_dequeue_script( 'wc-password-strength-meter' ); } read more...
function example_admin_bar_remove_logo() { global $wp_admin_bar; $wp_admin_bar->remove_menu( 'wp-logo' ); } add_action( 'wp_before_admin_bar_render', 'example_admin_bar_remove_logo', 0 ); read more...
function remove_footer_admin () { echo 'Designed by <a href=" https://ecommtrics.com " target="_blank">ecommtrics.com </a></p>'; } add_filter('admin_footer_text',read more...
function enqueue_font_awesome(){ wp_enqueue_style('font-awesome', 'https://pro.fontawesome.com/releases/v5.1.0/css/all.css'); } add_action('wp_enqueue_scripts','enqueue_font_awesome'); read more...
function wpb_login_logo() { ?> <style type="text/css"> #login h1 a, .login h1 a { background-image: url(https://path/to/your/custom-logo.png);read more...