PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 3.1.8
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v3.1.8
3.4.2 3.4.1 3.4.0 3.3.9 3.3.8 3.3.7 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 3.3.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 2.3.2 All 195 releases
← All changes | includes/functions.php +0 -78 3.3.13.1.8 View file →
@@ -234,32 +234,8 @@
234 234
235 235 }
236 236
237 237 /**
238 - * Helper method to get registered plugin sidebars.
239 - *
240 - * @since 3.3.0
241 - *
242 - * @return array Plugin sidebars
243 - */
244 -function convertkit_get_plugin_sidebars() {
245 -
246 - $plugin_sidebars = array();
247 -
248 - /**
249 - * Registers plugin sidebars for the WordPress block editor.
250 - *
251 - * @since 3.3.0
252 - *
253 - * @param array $plugin_sidebars Plugin sidebars.
254 - */
255 - $plugin_sidebars = apply_filters( 'convertkit_plugin_sidebars', $plugin_sidebars );
256 -
257 - return $plugin_sidebars;
258 -
259 -}
260 -
261 -/**
262 238 * Helper method to get registered pre-publish actions.
263 239 *
264 240 * @since 2.4.0
265 241 *
@@ -553,36 +529,8 @@
553 529
554 530 }
555 531
556 532 /**
557 - * Helper method to enqueue the frontend CSS file.
558 - *
559 - * @since 3.2.0
560 - */
561 -function convertkit_enqueue_frontend_css() {
562 -
563 - wp_enqueue_style( 'convertkit-frontend', CONVERTKIT_PLUGIN_URL . 'resources/frontend/css/frontend.css', array(), CONVERTKIT_PLUGIN_VERSION );
564 -
565 -}
566 -
567 -/**
568 - * Helper method to enqueue the frontend JS file.
569 - *
570 - * @since 3.2.0
571 - */
572 -function convertkit_enqueue_frontend_js() {
573 -
574 - wp_enqueue_script(
575 - 'convertkit-js',
576 - CONVERTKIT_PLUGIN_URL . 'resources/frontend/js/dist/frontend.min.js',
577 - array(),
578 - CONVERTKIT_PLUGIN_VERSION,
579 - true
580 - );
581 -
582 -}
583 -
584 -/**
585 533 * Helper method to enqueue Select2 scripts for use within the ConvertKit Plugin.
586 534 *
587 535 * @since 1.9.6.4
588 536 */
@@ -818,31 +766,8 @@
818 766
819 767 /**
820 768 * Deletes the stored access token, refresh token and its expiry from the Plugin settings,
821 769 * and clears any existing scheduled WordPress Cron event to refresh the token on expiry,
822 - * when the user revokes the access token.
823 - *
824 - * @since 3.2.4
825 - *
826 - * @param string $client_id OAuth Client ID used for the Access and Refresh Tokens.
827 - */
828 -function convertkit_delete_credentials( $client_id ) {
829 -
830 - // Don't delete these credentials if they're not for this Client ID.
831 - // They're for another Kit Plugin that uses OAuth.
832 - if ( $client_id !== CONVERTKIT_OAUTH_CLIENT_ID ) {
833 - return;
834 - }
835 -
836 - // Delete Access and Refresh Tokens.
837 - $settings = new ConvertKit_Settings();
838 - $settings->delete_credentials();
839 -
840 -}
841 -
842 -/**
843 - * Deletes the stored access token, refresh token and its expiry from the Plugin settings,
844 - * and clears any existing scheduled WordPress Cron event to refresh the token on expiry,
845 770 * when either:
846 771 * - The access token is invalid
847 772 * - The access token expired, and refreshing failed
848 773 *
@@ -875,11 +800,8 @@
875 800
876 801 // Update Access Token when refreshed by the API class.
877 802 add_action( 'convertkit_api_get_access_token', 'convertkit_maybe_update_credentials', 10, 2 );
878 803 add_action( 'convertkit_api_refresh_token', 'convertkit_maybe_update_credentials', 10, 2 );
879 -
880 -// Delete credentials when the user revokes the access and refresh tokens.
881 -add_action( 'convertkit_api_revoke_tokens', 'convertkit_delete_credentials', 10, 1 );
882 804
883 805 // Delete credentials if the API class uses a invalid access token.
884 806 // This prevents the Plugin making repetitive API requests that will 401.
885 807 add_action( 'convertkit_api_access_token_invalid', 'convertkit_maybe_delete_credentials', 10, 2 );