theme and plugin sync

This commit is contained in:
2024-03-20 17:38:18 -04:00
commit 03e44e02f0
224 changed files with 56542 additions and 0 deletions

54
functions.php Normal file
View File

@@ -0,0 +1,54 @@
<?php
/**
* Theme functions.
*
* @package ThemeStarter
*/
// <----- Variables ----->
// <----- Includes ----->
// include(get_theme_file_path('/'));
// <----- Back End ----->
include(get_theme_file_path('/includes/back-end/editor_styles_and_scripts.php'));
include(get_theme_file_path('/includes/back-end/query_adjustments.php'));
include(get_theme_file_path('/includes/back-end/required_plugins.php'));
// <----- Front End ----->
include(get_theme_file_path('/includes/front-end/theme_starter_setup.php'));
include(get_theme_file_path('/includes/front-end/styles_and_scripts.php'));
include(get_theme_file_path('/includes/front-end/registration_form_message.php'));
include(get_theme_file_path('/includes/front-end/custom_login_screen.php'));
// include(get_theme_file_path('/includes/back-end/template_content_update.php'));
// <----- Hooks ----->
// Theme Starter Features
add_action('after_setup_theme', 'themeStarter_setup');
// Enqueue front-end styles and script
add_action('wp_enqueue_scripts', 'themeStarter_enqueue');
// Enqueue back-end/editor styles and script
add_action('after_setup_theme', 'themeStarter_editor_enqueue');
// Hook the function to run when you visit the WordPress admin area
// add_action('admin_init', 'update_page_content_from_file');
// Adjust Queries
add_action('pre_get_posts', 'themeStarter_adjust_queries');
// Change Registration Message
add_action('login_message', 'change_reg_message');
// Customize Login Screen Title
add_filter('login_headertitle', 'ourLoginTitle');
// Change Login Page header url
add_filter('login_headerurl', 'ourHeaderUrl');
// Enqueue out stylesheet for login screen
add_action('login_enqueue_scripts', 'ourLoginCSS');