<a href="https://console.cloud.google.com/apis/credentials">Get Your Api Credentials Here</a> <a href="https://calendar.google.com/calendar">Get your Calender ID</a> <?php include_once("wp-load.php"); function get_calender_events() { $params = array(); /*Get current date*/ $current_date = date('Y-m-d H:i:s'); /*Convert it to google calendar's rfc_format */ $rfc_format = date("c", strtotime($current_date)); $params[] = 'orderBy=startTime'; $params[] ='maxResults=100'; $params[] = 'timeMin='.urlencode($rfc_format); $url_param = ''; foreach($params as $param) { $url_param.= '&'.$param; } $calender_id = "calender_id"; $client_key = "client_key"; $url = "https://www.googleapis.com/calendar/v3/calendars/".$calender_id."/events?key=".$client_key."&singleEvents=true".$url_param; $list_events = wp_remote_post($url, ...
How To get customer details when add customer by using Observer in magento. Step 1 app\code\local\Redback\SapPostback\etc\config.xml <config> <global> <modules> <Redback_SapPostback> <version>0.1.0</version> </Redback_SapPostback> </modules> <models> <redback_sappostback> <class>Redback_SapPostback_Model</class> </redback_sappostback> </models> <events> <checkout_submit_all_after> <observers> <redback_sappostback_order_observer> <type>singleton</type> <class>Redback_SapPostback_Model_Order_Observer</class> <method>accept</method> </redback_sappostback_order_observer> </observers> </checkout_submit_all_after> <customer_register_success> <observers> <redback_sappostback_customer_observer> ...