// ❌ Don’t use html tags in escaping functions like esc_html, esc_attr and their localized equivalents // Expected output: This part of the text is bold and this part underlined. esc_html_e( ‘This part of the text is bold and this…Continue reading
// ❌ Don’t use _e(), __(), _x() etc. to output data // ✅ Use the escaped versions instead esc_html_e(), esc_html__(), esc_html_x() etc. // ❌ Don’t echo any HTML attributes without escapingContinue reading
add_filter(‘the_generator’, ‘__return_empty_string’);Continue reading
// Don’t log license activations and deactivations. add_filter( ‘edd_sl_log_license_activation’, ‘__return_false’ ); add_filter( ‘edd_sl_log_license_deactivation’, ‘__return_false’ );Continue reading
/** * Bypasses the CRON event that is scheduled 5 minutes after a purchase that recalculates a customers stats. * * Note: This may impact the performance of the checkout process. */ add_filter( ‘edd_recalculate_bypass_cron’, ‘__return_true’ );Continue reading
/** * Adds the ‘tinymce_abbr_class’ button to the ‘Basic’ toolbar in the ACF WYSIWYG editor. * * Hooks into the ACF WYSIWYG toolbar configuration to append the ‘tinymce_abbr_class’ button * to the ‘Basic’ toolbar. It checks if the ‘Basic’ toolbar…Continue reading
/** * Allow SVG uploads for administrator users. * * @param array $upload_mimes Allowed mime types. * * @return mixed */ add_filter( ‘upload_mimes’, function ( $upload_mimes ) { // By default, only administrator users are allowed to add SVGs. //…Continue reading
// Shortcode to get post date function g9_get_post_date() { return ‘‘ . get_the_date() . ‘‘; } add_shortcode(‘post_date’, ‘g9_get_post_date’);Continue reading
remove_filter( ‘comment_text’, ‘make_clickable’, 9 );Continue reading
add_filter( ‘astra_v4_block_editor_compat’, “__return_true” );Continue reading