| @@ -168,9 +168,9 @@ | ||
| 168 | 168 | * |
| 169 | 169 | * @since 1.9.6 |
| 170 | 170 | * |
| 171 | 171 | * @param string $post_type Post Type. |
| 172 | - * @return string|int Default Form (default|form id) | |
| 172 | + * @return string Default Form (default|form id) | |
| 173 | 173 | */ |
| 174 | 174 | public function get_default_form( $post_type ) { |
| 175 | 175 | |
| 176 | 176 | // Return default if this Post Type doesn't exist as a setting. |
| @@ -228,21 +228,8 @@ | ||
| 228 | 228 | |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | 231 | /** |
| 232 | - * Returns whether stylesheets are disabled in the Plugin settings. | |
| 233 | - * | |
| 234 | - * @since 1.9.6.9 | |
| 235 | - * | |
| 236 | - * @return bool | |
| 237 | - */ | |
| 238 | - public function css_disabled() { | |
| 239 | - | |
| 240 | - return ( $this->settings['no_css'] === 'on' ? true : false ); | |
| 241 | - | |
| 242 | - } | |
| 243 | - | |
| 244 | - /** | |
| 245 | 232 | * The default settings, used when the ConvertKit Plugin Settings haven't been saved |
| 246 | 233 | * e.g. on a new installation. |
| 247 | 234 | * |
| 248 | 235 | * @since 1.9.6 |
| @@ -255,9 +242,8 @@ | ||
| 255 | 242 | 'api_key' => '', // string. |
| 256 | 243 | 'api_secret' => '', // string. |
| 257 | 244 | 'debug' => '', // blank|on. |
| 258 | 245 | 'no_scripts' => '', // blank|on. |
| 259 | - 'no_css' => '', // blank|on. | |
| 260 | 246 | ); |
| 261 | 247 | |
| 262 | 248 | // Add Post Type Default Forms. |
| 263 | 249 | foreach ( convertkit_get_supported_post_types() as $post_type ) { |
| @@ -269,26 +255,13 @@ | ||
| 269 | 255 | * e.g. on a new installation. |
| 270 | 256 | * |
| 271 | 257 | * @since 1.9.6 |
| 272 | 258 | * |
| 273 | - * @param array $defaults Default Settings. | |
| 259 | + * @param array $defaults | |
| 274 | 260 | */ |
| 275 | 261 | $defaults = apply_filters( 'convertkit_settings_get_defaults', $defaults ); |
| 276 | 262 | |
| 277 | 263 | return $defaults; |
| 278 | - | |
| 279 | - } | |
| 280 | - | |
| 281 | - /** | |
| 282 | - * Saves the given array of settings to the WordPress options table. | |
| 283 | - * | |
| 284 | - * @since 1.9.8.4 | |
| 285 | - * | |
| 286 | - * @param array $settings Settings. | |
| 287 | - */ | |
| 288 | - public function save( $settings ) { | |
| 289 | - | |
| 290 | - update_option( self::SETTINGS_NAME, array_merge( $this->get(), $settings ) ); | |
| 291 | 264 | |
| 292 | 265 | } |
| 293 | 266 | |
| 294 | 267 | } |