-
Add styles to wp-admin
use the admin_head hook add_action(‘admin_head’, ‘my_admin_style’); function my_custom_fonts() { ?> <style> tr[data-gateway_id^=”stripe_”] { display: none; } </style> <?php } or, you can use the admin_enqueue_scripts hook add_action(‘admin_enqueue_scripts’, ‘my_admin_stylesheet’); function my_admin_stylesheet() { // enqueue your stylesheet wp_enqueue_script( ‘my_custom_script’, plugin_dir_url( __FILE__ ) . ‘myscript.js’, array(), ‘1.0’ ); }
-
Remove content editor for front page
add_action(‘admin_head’, ‘remove_frontpage_content_editor’); function remove_frontpage_content_editor(){ if( is_front_page() ) remove_post_type_support(‘page’, ‘editor’); }