experiments->is_feature_active( 'e_optimized_markup' ); } public function get_custom_help_url() { if ( empty(get_option('wpr_wl_plugin_links')) ) // return 'https://royal-elementor-addons.com/contact/?ref=rea-plugin-panel-grid-help-btn'; return 'https://wordpress.org/support/plugin/royal-elementor-addons/'; } protected function register_controls() { // Tab: Content ============== // Section: General ------------ $this->start_controls_section( 'section_general', [ 'label' => esc_html__( 'General', 'wpr-addons' ), 'tab' => Controls_Manager::TAB_CONTENT, ] ); Utilities::wpr_library_buttons( $this, Controls_Manager::RAW_HTML ); $this->add_control( 'instagram_login', [ 'type' => Controls_Manager::RAW_HTML, 'raw' => '
', 'label_block' => true, ] ); } protected function render() { $settings = $this->get_settings_for_display(); // // Start Posts // // Set the access token // $access_token = "YOUR_ACCESS_TOKEN"; // // Make a GET request to the Facebook Graph API using Wordpress HTTP API // $response = wp_remote_get( "https://graph.facebook.com/v7.0/PAGE_ID/posts?access_token=$access_token" ); // // Check for errors // if ( is_wp_error( $response ) ) { // echo 'Error: ' . $response->get_error_message(); // exit; // } // // Decode the response // $response = json_decode( wp_remote_retrieve_body( $response ), true ); // // Iterate over each post // foreach ( $response['data'] as $post ) { // // Display the post on the profile // echo "
".$post['message']."
"; // } // // End posts echo '
'; echo 'Log In'; ?>
'; } }