theme and plugin sync
This commit is contained in:
54
functions.php
Normal file
54
functions.php
Normal 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');
|
Reference in New Issue
Block a user