• I made some modifications to the links.php file.
    I created a couple new functions which are basically the get_links and get_linksbyname functions rewritten to access a seperate database. However I currently have them declared in the links.php file.
    I would like to take them and put them in a seperate file.
    1. so unnecessary functions are not loaded from links.php
    2. so that I could possibly share the results with other users without them needing to edit the links.php file.
    So how can I take the functions and put them in a seperate file, which is included when the admin page is loaded?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Use my-hacks.php and turn on its support in the options.

    Thread Starter clay

    (@clay)

    So would I just take the 2 functions I rewrote, save them in a file like functions2.php and call it from my-hacks.php?

    Thread Starter clay

    (@clay)

    It worked! Thanks!
    This is nowhere near as streamlined as it could be I don’t think- but I just can’t believe I did it!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Creating new Functions’ is closed to new replies.