Okay
  Public Ticket #3670845
Coonect REST API
Closed

Comments

  • Israel Arredondo started the conversation

    I would like to know if I can connect to your Google Sheets REST API to display information through a custom field in WordPress.

    where id_halcon_1 = B-465

    Example

    if (is_user_logged_in()) {
            
            $user_id = get_current_user_id();

     campos personalizados
            $custom_field_1 = get_user_meta($user_id, 'id_halcon_1', true);
            $custom_field_2 = get_user_meta($user_id, 'categoria_1', true);
    $custom_field_3 = get_user_meta($user_id, 'EQUIPO_1', true);

           
            echo '<p>Id Halcon: ' . esc_html($custom_field_1) . '</p>';
            echo '<p>Categoria: ' . esc_html($custom_field_2) . '</p>';
        echo '<p>Equipo: ' . esc_html($custom_field_2) . '</p>';
    echo '<p></p>';
    echo '<div url="******URL GOOGLE SHEET*****" data-sheetdb-search="ID=B-465"
             <p>ID: {{FECHA}} - {{NOMBRE}} - {{PAGO}}</p>
    </div>
    </div>';

        } else {
            echo '<p>No hay ningún usuario conectado.</p>';
        }

    Thank you so much !


  • Israel Arredondo replied

    I fixed with code snippets !


    thank you so much !

  •  1,767
    Miloš replied

    Hi Israel,

    I am delighted to hear that this has been resolved. Thank you for letting us know. Anything else that we could assist with, please don't hesitate to create new tickets.

    Have a great day! :)


    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables