Override Block Editor Palette Colors

add_filter( ‘wp_theme_json_data_theme’, function ( $theme_json ) { $new_data = array( ‘settings’ => array( ‘color’ => array( ‘palette’ => array( // Replace with your desired colors. array( ‘slug’ => ‘white’, ‘color’ => ‘#ffffff’, ‘name’ => ‘White’, ), array( ‘slug’ => ‘black’,…Continue reading

Reorder Admin Menu Items

add_filter( ‘custom_menu_order’, ‘__return_true’ ); // This will move the WPCode menu under the Dashboard menu item. // Uncomment and add more items as needed. add_filter( ‘menu_order’, function () { return array( ‘index.php’, ‘wpcode’, // ‘edit.php’, // Posts // ‘upload.php’, //…Continue reading

Limit Comments & Display Character Count

if ( ! class_exists( ‘WPCode_Comment_Limit_Counter’ ) ) { class WPCode_Comment_Limit_Counter { // Update this value to change the maximum number of characters allowed in a comment. protected $comment_max_length = 1000; // Update this value to change the minimum number of…Continue reading

WP Simple Pay: Increase Input Font Size

.simpay-styled .simpay-form-control input[type=date], .simpay-styled .simpay-form-control input[type=time], .simpay-styled .simpay-form-control input[type=datetime-local], .simpay-styled .simpay-form-control input[type=week], .simpay-styled .simpay-form-control input[type=month], .simpay-styled .simpay-form-control input[type=text], .simpay-styled .simpay-form-control input[type=email], .simpay-styled .simpay-form-control input[type=url], .simpay-styled .simpay-form-control input[type=password], .simpay-styled .simpay-form-control input[type=search], .simpay-styled .simpay-form-control input[type=tel], .simpay-styled .simpay-form-control input[type=number], .simpay-styled .simpay-form-control select, .simpay-styled…Continue reading

Add user registration date

/* * Creating a column (it is also possible to remove some default ones) */ add_filter( ‘manage_users_columns’, ‘rudr_modify_user_table’ ); function rudr_modify_user_table( $columns ) { // unset( $columns[‘posts’] ); // maybe you would like to remove default columns $columns[ ‘registration_date’ ]…Continue reading