Browse Source

New function to check if we're using ClassicPress

pull/6/head
Sean King 1 month ago
parent
commit
3cb30eabba
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      inc/template-functions.php

+ 7
- 0
inc/template-functions.php View File

@@ -109,6 +109,13 @@ function simplenineteen_is_big_front_page_header_enabled() {
return (get_post_meta( get_queried_object_id(), 'simplenineteen-big-front-page-header', true ) );
}

/**
* Check to see if we're using ClassicPress or not.
*/
function simplenineteen_is_classicpress() {
return ( function_exists( 'classicpress_version' ) );
}

/**
* Check to see if the page or post is set to have no page title.
*/


Loading…
Cancel
Save