Envira Socials – Disable Pinterest Pin It Button

/* Envira – Disable Pinterest Button on Image Hover * * @link https://enviragallery.com/docs/how-to-disable-pinterest-pin-it-button-browser-extension/ */ function envira_disable_pinterest_button( $atts, $id, $item, $data, $i ) { return $atts . ‘nopin=”nopin”‘; } add_filter( ‘envira_gallery_output_image_attr’, ‘envira_disable_pinterest_button’, 10, 5 ); add_filter( ‘envira_albums_output_image_attr’, ‘envira_disable_pinterest_button’, 10, 5 );Continue reading

Global scripts | run everywhere | prod-dev

// Remove admin bar items function remove_admin_bar_items($wp_admin_bar) { $wp_admin_bar->remove_node(‘updates’); // Hide updates $wp_admin_bar->remove_node(‘comments’); // Hide comments $wp_admin_bar->remove_node(‘rank-math’); // Hide Rank Math $wp_admin_bar->remove_node(‘llar-root’); // Hide Llar Root } add_action(‘admin_bar_menu’, ‘remove_admin_bar_items’, 9999);Continue reading

Disable Admin Notices WordPress

/** * Disable Admin Notices WordPress * Description: Completely removes all admin notices from the WordPress dashboard, * including core WordPress notices and those added by plugins and themes. * @author Faisal Ahammad */ /** * Remove all notice actions…Continue reading

Onemoguci mail provjeru – WP Forms

/** * Disable the email address suggestion. kada npr mi predloži umjesto besoft.hr da je besoft.fr itd itd * * @link https://wpforms.com/developers/how-to-disable-the-email-suggestion-on-the-email-form-field/ */ add_filter( ‘wpforms_mailcheck_enabled’, ‘__return_false’ );Continue reading

Make Sponsor ID a Meta Tag

/* on category pages, grabbing the sponsorship_id is the last post included in the list – not the category’s sponsor id. * this code deals with this…borrowed from equinenetwork-gam-public-footer.php */ $term = get_queried_object(); if ( function_exists(‘get_field’) == true && get_field(‘sponlineitemid’)…Continue reading

Adam’s Blik Attempt

// Register BLIK payment method via the simpay_register_payment_methods hook. add_action( ‘simpay_register_payment_methods’, function( $payment_methods ) { // Create a new Payment Method instance for BLIK. $blik = new \SimplePay\Pro\Payment_Methods\Payment_Method( array( ‘id’ => ‘blik’, ‘name’ => esc_html__( ‘BLIK’, ‘simple-pay’ ), ‘nicename’ =>…Continue reading