function memberful_wp_update_plugin_settings_on_memberful_url() { return memberful_url('admin/settings/integrate/website/wordpress'); }
function memberful_wp_send_site_options_to_memberful() { $options = array('site' => array('name' => memberful_wp_site_name(), 'main_website_url' => home_url())); memberful_wp_put_data_to_api_as_json(memberful_url('admin/settings/integrate/website/settings'), $options); }
/** * Gets the url for the specified action at the member OAuth endpoint * * @param string $action Action to access at endpoint * @return string URL */ public static function oauth_member_url($action = '') { return memberful_url('oauth/' . $action); }
?> <?php memberful_wp_render('flash'); ?> <div id="memberful-wrap"> <div id="memberful-registered" class="postbox"> <h1><?php _e('Integration Active', 'memberful'); ?> </h1> <h2><?php printf(__('Syncing %d products and %d subscriptions.', 'memberful'), count($products), count($subscriptions)); ?> </h2> <p><?php printf(__('<a href="%s">Sign in to your Memberful account</a> to manage products, subscriptions, members, and orders.'), memberful_url('admin')); ?> </p> <form method="POST" action="<?php echo memberful_wp_plugin_settings_url(TRUE); ?> "> <?php memberful_wp_nonce_field('memberful_options'); ?> <button type="submit" name="manual_sync" class="button action"><?php _e('Run manual sync', 'memberful'); ?> </button> <button type="submit" name="reset_plugin" class="memberful-red-button"><?php _e('Disconnect', 'memberful');