Replace The WordPress Logo on Login Page with your own logo
Replace The WordPress Logo on Login Page with your own logo
How To Show Last Modified Date On Blog Post Instead Of Published Date in WordPress
If you want to display the last modified date on your blog post without using a…
Child Support Calculator
function child_support_calculator_shortcode() { // Enqueue the JavaScript wp_enqueue_script('child-support-calculator', get_template_directory_uri() . '/path-to-your-js-folder/child-support-calculator.js', array('jquery'), '1.0.0', true); ob_start(); include…
Allow ICO Files Upload
Enable ICO File Uploads on your WordPress website with this PHP code snippet.
Disable Author Archive
A small Code that disable the WordPress Author Archive and redirect to the Homepage
Completely Disable Comments
add_action('admin_init', function () { // Redirect any user trying to access comments page global $pagenow; if…
Remove Order Notes in checkout page
/** * Snippet Name: Remove the Order Notes field section from the WooCommerce checkout. * Snippet…
Minify HTML
function minify_html($buffer) { // Remove comments $buffer = preg_replace('//', '', $buffer); // Remove whitespace $buffer =…
WP Simple Pay: Add Customer Phone to Customer Metadata
Adds the "Telephone" customer field value to the Customer record's metadata. This value is normally only…
WP Simple Pay: Translate Stripe Error Messages
For more information about the available error codes and messages visit: https://stripe.com/docs/error-codes
WP Simple Pay: Set a Per-Form Custom Amount Programmatically
Adjust a single payment form's custom amount value programatically.
WP Simple Pay: Custom Decimal Separator
Changes the decimal separator from a . (period) to a , (comma).
WP Simple Pay: Conditionally Dequeue Scripts & Styles
Conditionally dequeue scripts & styles based on set conditions. In this example, we remove all plugin…
WP Simple Pay: Disable Stripe Payment Terms
Disable the automatically generated payment form mandates. NOTE: No recommended. Some payment methods require mandates to…