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 7753847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:09:22+00:00 2026-06-01T12:09:22+00:00

This seems like a simple question, but has proven to be difficult to find

  • 0

This seems like a simple question, but has proven to be difficult to find information for.

I’m working with some WordPress plugins that have a terrible output – specifically, The Events Calendar 1.6.5. This plugin has PHP files for the output of event content like gridview.php, list.php, single.php, and table.php. I am familiar with hooking into the functions that these files call to override how the plugin works, but I need to change the entire display format to fit my theme.

Is there a way to override these display files, or do I just make my own themed file and call the same functions that the plugin files use?

  • 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-01T12:09:23+00:00Added an answer on June 1, 2026 at 12:09 pm

    I was searching for a similar answer. I’m not exactly sure how Events Calendar is implemented, but speaking from experience of having done something similar with Business Directly Plugin, you can overwrite the hooks by having it hook to your own methods from your theme’s functions.php file.

    Here is an except I wrote to override the hook ‘wpbdm_show-add-listing-form’:

    /*
     * Fix the horrible output of wpbusdirman_displaypostform() from wpbusdirman.php
     * 
     * This is done by overriding the wpbdm_show-add-listing-form hook with my own function
     */
    add_filter('wpbdm_show-add-listing-form', 'alternative_wpbusdirman_displaypostform', 10, 4);
    
    // Ensure that the method signature is the same (same order of vars, same 
    function alternative_wpbusdirman_displaypostform($makeactive = 1, $wpbusdirmanerrors = '', $neworedit = 'new', $wpbdmlistingid = '')
    {
        // This assumes that the Business Directory Plugin is installed
        if (!function_exists("wpbusdirman_displaypostform"))
        {
            // If the funct doesn't exist then it probably isn't installed
            return '';
        }
    
        // Call the method and regex parse out the bits we don't want
        $original_output = wpbusdirman_displaypostform($makeactive, $wpbusdirmanerrors, $neworedit, $wpbdmlistingid);
    
        // Do some fixing of the output. In this example we do nothing and just return what we received.
    
        return $original_output . " WE EDITED IT!";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this seems like a simple enough question but I can't seem to find a
This seems like a simple question, but it is difficult to search for. I
This seems like a simple question, but I haven't been able to find the
This seems like it would be fairly simple, but I've been unable to find
This seems to me like a very simple question, but I can't seem to
This seems like a very simple question, but I think hours of staring at
This seems like a really simple question but I haven't seen it answered anywhere.
this seems like a really simple Question...but behold :) Geek name:string Laser geek_id:integer, power:integer
This may seem like a simple question but i am getting an error when
This seems like such a simple question. I have several Edit boxes on my

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.