add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://wpcode.com/wp-admin/images/wordpress-logo.svg’; $logo_width = 84; $logo_height = 84; printf( ‘.login h1 a {background-image:url(%1$s) !important; margin:0…Continue reading
/** * Plugin Name: WP Simple Pay – Custom Rate Limit Maximum * Plugin URI: https://wpsimplepay.com * Author: Sandhills Development, LLC * Author URI: https://sandhillsdev.com * Description: Changes the default rate limit maximum. * Version: 1.0 */ /** * Changes…Continue reading
// [current_user_display_name] function display_current_user_display_name () { $user = wp_get_current_user(); $display_name = $user->display_name; return $user->display_name; } add_shortcode(‘current_user_display_name’, ‘display_current_user_display_name’);Continue reading
// Please edit the address and name below before activating this snippet. // Change the From address. add_filter( ‘[email protected]’; function ( $original_email_address ) { return; } ); // Change the From name. add_filter( ‘allowmetoshare’; function ( $original_email_from ) { return;…Continue reading
// Please edit the address and name below before activating this snippet. // Change the From address. add_filter( ‘[email protected]’; function ( $original_email_address ) { return; } ); // Change the From name. add_filter( ‘allowmetoshare’; function ( $original_email_from ) { return;…Continue reading
function wpcode_snippet_add_slug_body_class( $classes ) { global $post; if ( isset( $post ) ) { $classes[] = $post->post_type . ‘-‘ . $post->post_name; } return $classes; } add_filter( ‘body_class’, ‘wpcode_snippet_add_slug_body_class’ );Continue reading
/** * Wrap the thumbnail in a link to the post. * Only use this if your theme doesn’t already wrap thumbnails in a link. * * @param string $html The thumbnail HTML to wrap in an anchor. * @param…Continue reading