I include the following, or something similar, in most of my WordPress projects. It lightly standardises some awkward behaviours, removes some superfluous settings and capabilities which I rarely/never use, and enhances/improves some default functions and approaches. Warning – do not simply copy and paste this into your theme/functions; it’ll need adapting to fit your use-case,[…]