kdi_ko/Theme/functions/disable-gutengerg-certain.php
/**
 * Templates and Page IDs without editor
 *
 */
Templates and Page IDs without editor
Templates and Page IDs without editor
function ea_disable_editor($id = false)
{
  $excluded_templates = array(
    'templates/template-home.php',
    'templates/template-recruit.php',
  );
  $excluded_ids = array(
    211,
    93
  );
  if (empty($id))
    return false;
  $id = intval($id);
  $template = get_page_template_slug($id);
  return in_array($id, $excluded_ids) || in_array($template, $excluded_templates);
}
function ea_disable_editor ( $ id = false ) { $ excluded_templates = array ( 'templates/template-home.php' , 'templates/template-recruit.php' , ) ; $ excluded_ids = array ( 211 , 93 ) ; if ( empty ( $ id ) ) return false ; $ id = intval ( $ id ) ; $ template = get_page_template_slug ( $ id ) ; return in_array ( $ id , $ excluded_ids ) || in_array ( $ template , $ excluded_templates ) ; }
Templates and Page IDs without editor
Templates and Page IDs without editor