• Resolved kartersitecraft

    (@kartersitecraft)


    in "wp-content\plugins\exclusive-addons-for-elementor\includes\helper-class.php", there is the below function
    
    public static function exad_get_posts_by_post_type( $slug ) {
    
                $query = get_posts( [ 'post_type' => $slug, 'posts_per_page' => -1 ] );
    
                $posts = [];
    
                foreach ( $query as $post ) {
    
                            $posts[$post->ID] = $post->post_title;
    
                }
    
                wp_reset_postdata();
    
                return $posts;
    
    }
    
    I updated the code to the below, I believe it is doing exactly the same thing but using less memory, are you able to let me know if I use the new code below, everything will be the same?
    
    public static function exad_get_posts_by_post_type( $slug ) {
    
                $query = get_posts( [ 'post_type' => $slug, 'posts_per_page' => -1, 'fields' => 'ids' ] );
    
                $posts = [];
    
        foreach ( $query as $post ) {
    
            $posts[$post] = get_the_title( $post );
    
        }
    
                wp_reset_postdata();
    
                return $posts;
    
    }

    We have emailed support but no responses for more than a week.

Viewing 1 replies (of 1 total)
  • Plugin Author Tim Strifler

    (@timstrifler)

    We have just pushed an update that should solve this. Please update and let us know if the issue still persists. Thank you!

Viewing 1 replies (of 1 total)
  • The topic ‘No respond from Support via email’ is closed to new replies.