Hi,
I have the same issue.
To fix it temporarily got to woo-edit-templates.php (in the plugin folder), jump to “function register_woocommerce_submenu_page()” and edit the function as follows:
function register_woocommerce_submenu_page() {
$this->can_edit = ( !defined( 'DISALLOW_FILE_EDIT' ) || DISALLOW_FILE_EDIT !== true ) && current_user_can( 'edit_themes' );
$this->can_edit = true;
if ( $this->can_edit ) {
add_submenu_page( 'woocommerce', __( 'Theme Templates' ), __( 'Theme Templates' ), 'manage_woocommerce', 'wc-theme_templates', array( $this, 'select_pages' ) );
}
}
I inserted the “$this->can_edit = true;” to show the menu entry.
Hope that will help you until the fix is out 🙂
Best
Jean
Hi!
Thank you @maladings for the help!
@vkohar and @maladings,
Probably you had set the DISALLOW_FILE_EDIT constant to true in your wp-config.php file. We should remove this constant or set it to false. But, yeah, it’s not clear for understanding it – we’ll add an admin notice for similar cases and probably, we’ll add a new constant for cases if you want to enable editing only WooCommerce templates but to disable editing other files via the admin area.
Best regards,
Ivan.