Marcelo Herrera
Forum Replies Created
-
Forum: Plugins
In reply to: [Google Trends for WP] Add Brazil – Congratulations for this projectTo 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”}
<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
Forum: Plugins
In reply to: [Postie] Update CF with Sender email addressSolved!
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
In reply to: [Organization chart] Org Chart not displaying horizontallySame issue for me, how to solve this? I suspect that it’s because go responsive
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
In reply to: [Log in with Google] Assign role based on emailSolved, 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
In reply to: [YITH WooCommerce Quick View] Quantity buttons not workingSolved! replacing
$('.td-quantity-button').on('click',
with
$( document ).on( 'click', '.quantity .minus, .quantity .plus',
Les sucede que dan click en guardar cambios y no sucede nada?
Same problem too but i alreday reset my password and wordfence still showing message Insecure Password.
Forum: Fixing WordPress
In reply to: Problem showing latest post from current categorySolved, here was the problem
'post__not_in' => array($post->ID)
Deleted this and work great!
Forum: Fixing WordPress
In reply to: Fatal Error: Cannot redeclare get_avatar_url()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]; }