Home Forums WoodMart support forum Instagram returned incorrect data

Instagram returned incorrect data

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #140568

    nnominor
    Participant

    Hi
    Instagram returned incorrect data.
    https://craftstone.ru/contacts/
    tried on different sites – the same result

    Attachments:
    You must be logged in to view attached files.
    #140577

    Hello,

    Please add this code to the functions.php of the child theme:

    add_filter( 'woodmart_intagram_user_ajax_load', '__return_true' );

    Next, find the line:

    if ( is_wp_error( $media_array ) && $media_array->get_error_code() === 'invalid_response_429' ) {

    in

    woodmart/inc/shortcodes/instagram.php

    and replace with this line:

    if ( is_wp_error( $media_array ) && ( $media_array->get_error_code() === 'invalid_response_429' || apply_filters( 'woodmart_intagram_user_ajax_load', false ) ) ) {

    Best Regards

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)