|
|
@ -234,8 +234,7 @@ function hide_catalog_content_editor() { |
|
|
|
if ( $template === 'page-catalog.php' ) { |
|
|
|
if ( $template === 'page-catalog.php' ) { |
|
|
|
add_action( |
|
|
|
add_action( |
|
|
|
'edit_form_after_title', function() { |
|
|
|
'edit_form_after_title', function() { |
|
|
|
// printf( '<p>%s</p>', __( 'This page displays your network catalog, so there is no content to edit.', 'pressbooks-aldine' ) ); |
|
|
|
printf( '<p>%s</p>', __( 'This page displays your network catalog, so there is no content to edit.', 'pressbooks-aldine' ) ); |
|
|
|
printf( '<p>%s</p>', __( 'Note for devs: We want to allow to edit it but with some restrictions', 'pressbooks-aldine' ) ); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
); |
|
|
|
); |
|
|
|
remove_post_type_support( 'page', 'editor' ); |
|
|
|
remove_post_type_support( 'page', 'editor' ); |
|
|
|