Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8368497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:24:24+00:00 2026-06-09T13:24:24+00:00

This is a simple concept question… If I have a wordpress plugin and I

  • 0

This is a simple concept question… If I have a wordpress plugin and I want to write some functions for my own IN ADDITION to what they have already where would I put them in the wordpress file structure?

I cant put them in the original core.php files/directory because they will get wiped out when the plugins are updated right?

@NomikOS – Yeah Sure .. I have a wordpress plugin called BP-Phototag- pretty much an album..Its located in the wp-content/plugins folder. I want to add my own functions…for a specific template in my themes folder. DO i put the functions in the bpa.core.php file in the wp-conten/plugins folder or do I make a new php file that can inherit bpa.core.php functions(which I dont know how to do) and stick them in my template specific folder under wp-content/themes/mytheme folder. Im really not sure how to extend and override it…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:24:26+00:00Added an answer on June 9, 2026 at 1:24 pm

    If the plugin is class based, you can extend it to override/add methods. You can include the file containing your code inside plugin’s directory if you want (it will not deleted after an upgrade) or directly inside plugins dir.

    EDIT 1

    Sorry, I didn’t saw your last comment. Well, my friend, it’s time to learn OOP PHP5. I recommend you PHP 5 objects, patterns, and practice. It’s for PHP serious coders.

    Basically you do

    class leon_my_class extends BP_Phototag_class {
    
        function __construct()
        {
            parent::__construct();
    
            // my code
        }
    
        // overriding protected/public method 
        function BP_Phototag_method()
        {
            // this code will replace original code
        }
    
        // adding method
        function my_own_method()
        {
    
        }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok this may be a simple question. I have a working concept of posting
Can someone write some sample code to explain this concept? I know what a
I am asking this question to make sure some concept of parallel computing concept.
my question seems simple and stupid but first read this, suppose you have a
In this simple example, i want to create a String array populated with each
This is probably a very simple question that I am working through in an
This is probably a simple question, and i'm just being dense. I've looked through
I know this may be a simple question and if I knew what I
I know that this is supposedly a super simple question, but I've been struggling
This is my first time using stackoverflow for a question, I have read a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.