[How To] Remove Block Library CSS from WordPress

WPAssist / WordPress Hacks - October 1, 2023

Gutenberg, the default editor for the latest WordPress installations, uses special CSS libraries to manage blocks on your front end. If you are using this new WP editor, it will automatically add this library CSS code on your site; <link rel=’stylesheet’ id=’wp-block-library-css’ href=’https://wpassist.me/wp-includes/css/dist/block-library/style.min.css’ type=’text/css’ media=’all’ […]

[How to] Add New Tags or Taxonomies to WordPress using PHP

WPAssist / How To - April 8, 2020

function wpassist_insert_terms(){ $ahc = get_term_by(‘name’, ‘American Heroes Channel’, ‘post_tag’); if( !$ahc ){ wp_insert_term( ‘American Heroes Channel’, ‘post_tag’); wp_insert_term( ‘Discovery Channel’, ‘post_tag’); wp_insert_term( ‘Animal Planet’, ‘post_tag’); wp_insert_term( ‘USA Network’, ‘post_tag’); wp_insert_term( ‘Amazon’, ‘post_tag’); wp_insert_term( ‘TNT’, ‘post_tag’); } } add_action( ‘wp_head’, ‘wpassist_insert_terms’ );

[How to] Add User to WordPress using SQL INSERT

WPAssist / WordPress Hacks - April 8, 2020

If you want to add a new user to WordPress database using MySQL using phpMyAdmin or a similar tool, you can use the following snippet: INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES (‘admin’, ‘$P$Bg/Ol6U.M07OGU7sKEZvIyl.mxuQQw.’, ‘admin’, ‘[email protected]’, ”, ‘2018-12-21 16:34:15’, […]

Subscribe to WPAssist

Loading