| @@ -46,9 +46,9 @@ | ||
| 46 | 46 | * on a WordPress multisite setup. |
| 47 | 47 | * |
| 48 | 48 | * @since 1.9.7.4 |
| 49 | 49 | * |
| 50 | - * @param WP_Site|int $site_or_blog_id WP_Site or Blog ID. | |
| 50 | + * @param mixed $site_or_blog_id WP_Site or Blog ID. | |
| 51 | 51 | */ |
| 52 | 52 | function convertkit_plugin_activate_new_site( $site_or_blog_id ) { |
| 53 | 53 | |
| 54 | 54 | // Check if $site_or_blog_id is a WP_Site or a blog ID. |
| @@ -125,34 +125,8 @@ | ||
| 125 | 125 | |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | /** |
| 129 | - * Helper method to get supported Post Types for Restricted Content (Member's Content) | |
| 130 | - * | |
| 131 | - * @since 2.1.0 | |
| 132 | - * | |
| 133 | - * @return array Post Types | |
| 134 | - */ | |
| 135 | -function convertkit_get_supported_restrict_content_post_types() { | |
| 136 | - | |
| 137 | - $post_types = array( | |
| 138 | - 'page', | |
| 139 | - ); | |
| 140 | - | |
| 141 | - /** | |
| 142 | - * Defines the Post Types that support Restricted Content / Members Content functionality. | |
| 143 | - * | |
| 144 | - * @since 2.0.0 | |
| 145 | - * | |
| 146 | - * @param array $post_types Post Types | |
| 147 | - */ | |
| 148 | - $post_types = apply_filters( 'convertkit_get_supported_restrict_content_post_types', $post_types ); | |
| 149 | - | |
| 150 | - return $post_types; | |
| 151 | - | |
| 152 | -} | |
| 153 | - | |
| 154 | -/** | |
| 155 | 129 | * Helper method to get registered Shortcodes. |
| 156 | 130 | * |
| 157 | 131 | * @since 1.9.6.5 |
| 158 | 132 | * |
| @@ -195,32 +169,8 @@ | ||
| 195 | 169 | */ |
| 196 | 170 | $blocks = apply_filters( 'convertkit_blocks', $blocks ); |
| 197 | 171 | |
| 198 | 172 | return $blocks; |
| 199 | - | |
| 200 | -} | |
| 201 | - | |
| 202 | -/** | |
| 203 | - * Helper method to get registered Block formatters for Gutenberg. | |
| 204 | - * | |
| 205 | - * @since 2.2.0 | |
| 206 | - * | |
| 207 | - * @return array Block formatters | |
| 208 | - */ | |
| 209 | -function convertkit_get_block_formatters() { | |
| 210 | - | |
| 211 | - $block_formatters = array(); | |
| 212 | - | |
| 213 | - /** | |
| 214 | - * Registers block formatters in Gutenberg for the ConvertKit Plugin. | |
| 215 | - * | |
| 216 | - * @since 2.2.0 | |
| 217 | - * | |
| 218 | - * @param array $block_formatters Block formatters. | |
| 219 | - */ | |
| 220 | - $block_formatters = apply_filters( 'convertkit_get_block_formatters', $block_formatters ); | |
| 221 | - | |
| 222 | - return $block_formatters; | |
| 223 | 173 | |
| 224 | 174 | } |
| 225 | 175 | |
| 226 | 176 | /** |