| @@ -48,7 +48,7 @@ discard block | ||
| 48 | 48 |  add_filter('register_post_type_args', 'lasso_show_in_rest', 10, 2); | 
| 49 | 49 |  function lasso_show_in_rest($args, $post_type){ | 
| 50 | 50 | |
| 51 | - $allowed_post_types = lasso_editor_get_option( 'allowed_post_types', 'lasso_editor', array( ) ); | |
| 51 | + $allowed_post_types = lasso_editor_get_option( 'allowed_post_types', 'lasso_editor', array( ) ); | |
| 52 | 52 | $allowed_post_types = apply_filters( 'lasso_allowed_post_types', $allowed_post_types ); | 
| 53 | 53 |  	if (in_array( $post_type,$allowed_post_types)) { | 
| 54 | 54 | $args['show_in_rest'] = true; | 
| @@ -57,6 +57,6 @@ discard block | ||
| 57 | 57 | } | 
| 58 | 58 | } | 
| 59 | 59 | |
| 60 | - return $args; | |
| 60 | + return $args; | |
| 61 | 61 | } | 
| 62 | 62 | |
| @@ -61,6 +61,10 @@ | ||
| 61 | 61 | } | 
| 62 | 62 | |
| 63 | 63 | |
| 64 | +/** | |
| 65 | + * @param string $option | |
| 66 | + * @param string $section | |
| 67 | + */ | |
| 64 | 68 |  function lasso_editor_get_option( $option, $section, $default = '' ) { | 
| 65 | 69 | |
| 66 | 70 | if ( empty( $option ) ) |