WordPress.org

Forums

Call to undefined function (1 post)

  1. Vanguard Digital
    Member
    Posted 5 months ago #

    I have a php module included through my wordpress functions.php file
    and it is stored in my theme directory however i do not have access to wordpress core functions or other functions stored in functions.php in my themes root directory.

    A basic overview of my site structure is

    functions.php
    /functions/locator/webzone.php << Included in functions php

    and webzone includes

    include_once('config.php');
    include_once($_SERVER['DOCUMENT_ROOT'].$GLOBALS['app_base_path'].'include/more_functions/db_functions.php');
    include_once($_SERVER['DOCUMENT_ROOT'].$GLOBALS['app_base_path'].'include/more_functions/Forms.php');
    include_once($_SERVER['DOCUMENT_ROOT'].$GLOBALS['app_base_path'].'include/db/db_class.php');
    include_once($_SERVER['DOCUMENT_ROOT'].$GLOBALS['app_base_path'].'include/library/gmap/Gmap_class.php');

    and so on...

    Question
    Why am i not able to access wordpress functions and theme functions if all these files are included from the themes functions.php

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 5 months ago by Vanguard Digital
  • This topic is not resolved
  • WordPress version: 3.5