1

I have made 2 sets out of various functions in wordpress.

One set just effects the back-end or the admin-side and the other effects the front-end live site.

I want to load only the front-end functions file (front-functions.php) when the front site is browsed and load the back-end (admin-functions.php) file when the admin area is browsed.

Is it possible to do so? If yes, How?

Kindly help.

1 Answer 1

2

you could try this code in your functions.php

if ( is_admin() ) {
     include_once('admin-functions.php')
} else {
     include_once('front-functions.php')
}

Regards, jhOy

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.