Skip to content

Instantly share code, notes, and snippets.

View pintolog's full-sized avatar

Gabriel Pinto-Hasagiv pintolog

View GitHub Profile
@Qubadi
Qubadi / gist:d6375ff27c1044416a665af09a294e80
Created November 6, 2023 20:17
Jetformbuilder add icon to the form input field.
Dont forget to change the form field to your fields.
function enqueue_icons_script_and_styles() {
// Enqueue the Font Awesome stylesheet for the icons
wp_enqueue_style('font-awesome', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css');
// Add inline styles
$custom_css = "
.input-icon {
@Qubadi
Qubadi / gist:5cc4ff6ddb6ed13a1175dc631dc0f844
Last active March 1, 2024 16:21
Sending a verification code upon user registration. Creating a shortcode for the verification form. Handling the form submission via AJAX. Adding a custom column to the user list to show account status. Checking the verification status during the login process. Automatically logging out unverified users.
UPDATED
-----------------
Dont forget to use the shortcode:
[verify_user_account]
Change this ; https://your-domain-name.com/your-verfi-page-name-slug to yours url
Custom code :
// Hook into user registration to generate and send the verification code
add_action('user_register', 'send_verification_code', 10, 1);
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active May 1, 2024 22:40
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@webmasterninjay
webmasterninjay / functions.php
Created July 10, 2015 14:41
Woocommerce - Redirect after payment
<?php
/* Redirect user after check out */
add_action( 'template_redirect', 'jay_custom_redirect_after_purchase' );
function jay_custom_redirect_after_purchase() {
global $wp;
if ( is_checkout() && ! empty( $wp->query_vars['order-received'] ) ) {
wp_redirect( 'http://www.yoururl.com/your-page/' );
exit;