Sample Email Template Tag (copy)

/** * Register a custom email tag for the file name. * * @return void */ function prefix_add_file_name_email_tag() { edd_add_email_tag( ‘file_name’, // Tag ‘Displays the file name of the purchased download file.’, // Description ‘prefix_render_file_name_email_tag’, // Callback function ‘File Name’,…Continue reading

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

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

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

Change Cancel Page URL For Paypal

add_filter( ‘charitable_paypal_redirect_args’, ‘test_charitable_paypal_redirect_args’, 10, 3 ); function test_charitable_paypal_redirect_args( $paypal_args, $donation_id, $processor ) { // locate the ‘cancel_return’ parameter and update it to a proper url $paypal_args[‘cancel_return’] = ‘http://example.com/cancel’; return $paypal_args; }Continue reading

Envira – Disable Keyboard and Mousewheel Navigation

/* Disable Keyboard and Mousewheel Navigation * * @link https://enviragallery.com/docs/how-to-disable-keyboard-and-mousewheel-navigation/ */ // Disable for Albums add_filter( ‘envira_albums_pre_data’, ‘my_envira_album_pre_data’, 10, 2 ); function my_envira_album_pre_data( $data, $album_id ) { $data[‘config’][‘keyboard’] = 0; // 0 for disable, 1 to enable $data[‘config’][‘mousewheel’] = false;…Continue reading

Envira – Disable Keyboard and Mousewheel Navigation

/* Disable Keyboard and Mousewheel Navigation * * @link https://enviragallery.com/docs/how-to-disable-keyboard-and-mousewheel-navigation/ */ // Disable for Albums add_filter( ‘envira_albums_pre_data’, ‘my_envira_album_pre_data’, 10, 2 ); function my_envira_album_pre_data( $data, $album_id ) { $data[‘config’][‘keyboard’] = 0; // 0 for disable, 1 to enable $data[‘config’][‘mousewheel’] = false;…Continue reading