Title: Marcelo Herrera's Replies | WordPress.org

---

# Marcelo Herrera

  [  ](https://wordpress.org/support/users/rafadizeo/)

 *   [Profile](https://wordpress.org/support/users/rafadizeo/)
 *   [Topics Started](https://wordpress.org/support/users/rafadizeo/topics/)
 *   [Replies Created](https://wordpress.org/support/users/rafadizeo/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/rafadizeo/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/rafadizeo/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/rafadizeo/engagements/)
 *   [Favorites](https://wordpress.org/support/users/rafadizeo/favorites/)

 Search replies:

## Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Google Trends for WP] Add Brazil – Congratulations for this project](https://wordpress.org/support/topic/add-brazil-congratulations-for-this-project/)
 *  [Marcelo Herrera](https://wordpress.org/support/users/rafadizeo/)
 * (@rafadizeo)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/add-brazil-congratulations-for-this-project/#post-17170538)
 * To add countries you can edit the file: **codedeyo-google-trends-for-bloggers/
   build/frontend.js** and add country and coutry code. IE:
 * {name:”Brazil”,code:”BR”}
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Registration & Membership - Free & Paid Memberships, Subscriptions, Content Restriction, User Profile, Custom User Registration & Login Builder] Date field not working on Elementor popup](https://wordpress.org/support/topic/date-field-not-working-on-elementor-popup/)
 *  Thread Starter [Marcelo Herrera](https://wordpress.org/support/users/rafadizeo/)
 * (@rafadizeo)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/date-field-not-working-on-elementor-popup/#post-17133731)
 *     ```wp-block-code
       <script>
       jQuery(window).load(function() {
       	jQuery.each( elementorFrontend.documentsManager.documents, ( id, document ) => {
       		if ( document.getModal ) { // It's a popup document
       			document.getModal().on( 'show', () => {
       				jQuery(".ur-flatpickr-field").flatpickr();
       			} );
       		}
       	});
       });
       </script>
       ```
   
 * Using this code the field initializes but does not show the year
 * [https://prnt.sc/R0IQAxyaX9Tw](https://prnt.sc/R0IQAxyaX9Tw)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Postie] Update CF with Sender email address](https://wordpress.org/support/topic/update-cf-with-sender-email-address/)
 *  Thread Starter [Marcelo Herrera](https://wordpress.org/support/users/rafadizeo/)
 * (@rafadizeo)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/update-cf-with-sender-email-address/#post-15785246)
 * Solved!
 *     ```
       add_filter('postie_post_before', 'actualizar_remitente', 10, 2);
       function actualizar_remitente($post, $headers) {
           $nombre = $headers['from']['mailbox'];
           $host = $headers['from']['host'];
           $remitente = $nombre . '@' . $host;
           update_post_meta($post['ID'], 'test', $remitente);
           return $post;
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Organization chart] Org Chart not displaying horizontally](https://wordpress.org/support/topic/org-chart-not-displaying-horizontally/)
 *  [Marcelo Herrera](https://wordpress.org/support/users/rafadizeo/)
 * (@rafadizeo)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/org-chart-not-displaying-horizontally/#post-15739967)
 * Same issue for me, how to solve this? I suspect that it’s because go responsive
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Registration & Membership - Free & Paid Memberships, Subscriptions, Content Restriction, User Profile, Custom User Registration & Login Builder] Get field value’s](https://wordpress.org/support/topic/get-field-values/)
 *  Thread Starter [Marcelo Herrera](https://wordpress.org/support/users/rafadizeo/)
 * (@rafadizeo)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/get-field-values/#post-15726688)
 * Solved using get_user_meta()
 * and prefix user_registration_
 * So for example to get phone of all users registered by role
 *     ```
       $args = array(
               'role'    => 'ROLEHERE',
               'orderby' => 'user_nicename',
               'order'   => 'ASC'
           );
           $users = get_users( $args );
           foreach ( $users as $user ) {
           echo esc_html($postulante->user_registration_phone_1654792225);
           }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Log in with Google] Assign role based on email](https://wordpress.org/support/topic/assign-role-based-on-email/)
 *  Thread Starter [Marcelo Herrera](https://wordpress.org/support/users/rafadizeo/)
 * (@rafadizeo)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/assign-role-based-on-email/#post-15320509)
 * Solved, this is the code
 *     ```
       if ( ! function_exists( 'actualizar_datos' ) ) {
       	function actualizar_datos( int $user_id, \stdClass $user ): void {
       		if( !is_null( $user->email ?? '' ) ){
       			list($usuario, $dominio) = explode('@', $user->email );
       			if ($usuario == 'marcelo.herrera') {
       				wp_update_user(
       					[
       						'ID'         => $user_id,
       						'first_name' => $user->given_name ?? '',
       						'last_name'  => $user->family_name ?? '',
       						'role'		 => 'rrhh',
       					]
       				);
       			}
       		}
       	}
       	add_action( 'rtcamp.google_user_created', 'actualizar_datos', 10, 2 );
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YITH WooCommerce Quick View] Quantity buttons not working](https://wordpress.org/support/topic/quantity-buttons-not-working-4/)
 *  Thread Starter [Marcelo Herrera](https://wordpress.org/support/users/rafadizeo/)
 * (@rafadizeo)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/quantity-buttons-not-working-4/#post-15003533)
 * Solved! replacing
 * `$('.td-quantity-button').on('click',`
 * with
 * `$( document ).on( 'click', '.quantity .minus, .quantity .plus',`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mercado Pago payments for WooCommerce] Problemas con Versión 4.4.1 de Woocommerce](https://wordpress.org/support/topic/problemas-con-version-4-4-1-de-woocommerce/)
 *  [Marcelo Herrera](https://wordpress.org/support/users/rafadizeo/)
 * (@rafadizeo)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/problemas-con-version-4-4-1-de-woocommerce/#post-13374088)
 * Les sucede que dan click en guardar cambios y no sucede nada?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] Wordfence blocked Admin login](https://wordpress.org/support/topic/wordfence-blocked-admin-login/)
 *  [Marcelo Herrera](https://wordpress.org/support/users/rafadizeo/)
 * (@rafadizeo)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/wordfence-blocked-admin-login/#post-10179438)
 * Same problem too but i alreday reset my password and wordfence still showing 
   message Insecure Password.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem showing latest post from current category](https://wordpress.org/support/topic/problem-showing-latest-post-from-current-category/)
 *  Thread Starter [Marcelo Herrera](https://wordpress.org/support/users/rafadizeo/)
 * (@rafadizeo)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/problem-showing-latest-post-from-current-category/#post-7606976)
 * Solved, here was the problem
 * `'post__not_in' => array($post->ID)`
 * Deleted this and work great!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Fatal Error: Cannot redeclare get_avatar_url()](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-get_avatar_url/)
 *  [Marcelo Herrera](https://wordpress.org/support/users/rafadizeo/)
 * (@rafadizeo)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/fatal-error-cannot-redeclare-get_avatar_url/#post-6054616)
 * Look into your **functions.php** file in your theme and delete these lines
 *     ```
       // get gravatar URL
       	function get_avatar_url( $get_avatar ) {
       	    preg_match("/src='(.*?)'/i", $get_avatar, $matches);
       	    return $matches[1];
       	}
       ```
   

Viewing 11 replies - 1 through 11 (of 11 total)