Ready to get started?Download WordPress


Creating new Functions (4 posts)

  1. clay
    Posted 9 years ago #

    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?

  2. Beel
    Posted 9 years ago #

    Use my-hacks.php and turn on its support in the options.

  3. clay
    Posted 9 years ago #

    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?

  4. clay
    Posted 9 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic