Archives: Snippets
Disable Comment URL Linking
remove_filter( ‘comment_text’, ‘make_clickable’, 9 );Continue reading
Disable Application Passwords
add_filter(‘wp_is_application_passwords_available’, ‘__return_false’);Continue reading
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
Archive Descriptions
COLES TEST
COLES TEST
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