In your code there’s this part:
test();
ob_start();
wp_list_categories($atts);
$output = ob_get_contents();
But I really doubt that global function called test exists on your page.
There is a function called test in your class, but it’s not static (so you can’t call it from static context unless you change it to static function test(){...}), and you should call it with self::test();
Related Posts:
- How to use classes declared in another plugin?
- Hooking in to plugins
- How can I allow moderated anonymous contributors to post to my blog?
- How to only hook on Single.php after content?
- Handling jQuery Component Collision
- why plugins are loaded prior to pluggables
- Finding WordPress sites using my plugins
- WordPress 4.0 Cookie Authentication to avoid nonce error when publishing a post and page
- Shortcode under a Shortcode Multiple times Possible?
- How can I include PHP-Code to my post?
- Woocommerce exclude specific category products from related products [closed]
- Seriously stuck with some custom meta box/plugin stuff
- How to Build a Movie Library in WordPress 3.x
- Intercept comment form submit/list by hook/filter
- How many security plugins are too many? [closed]
- Creating WordPress Plugin solely for Admin panel with dash menu and submenus
- Creating an Exit Confirmation Popup
- How to prevent action in ajax request, when in admin side?
- How can I process xml file on upload?
- Can I delete plugin files using FTP?
- Reposition Woocommerce Message
- After activating a Plugin, /wp-admin is no longer accessible
- Get all categories of custom post even not assigned
- Plugin not appearing after uploading it via FTP
- How to import my YouTube channel into WordPress?
- How get a value from a plugin into another plugin through action/filter
- Easy Digital Download Sub category
- Prevent duplicate records in plugin table
- Theme is Causing Ajax Conflicts for a plugin I cant identify it
- CSV syntax for WP All Import upload without ACF
- Error: Cannot find module ‘../build/Debug/nodegit.node’ [closed]
- Uncaught TypeError: jQuery(…).flipster is not a function in wordpress
- Get Time Taken By Each Action Hook in WordPress
- Can’t catch enqueued style
- Buidling a translate plugin for wordpress
- Automatic switch to backup database on fail
- Display wordpress post’s in popup?
- allow photo/video in comments
- Excluding private/protected posts via IP
- Some one is trying to hack my website, Need guidance [closed]
- WordPress premium theme development [duplicate]
- Mass SQL WordPress Meta Key deletion
- Gathering and logging data from a plugin: how to do it without race conditions?
- How to pass the API key to the client from the database? [closed]
- order posts by `meta_key`, Does not display posts that does not have `meta_key`
- How do I make a secure API call from a shortcode when a button is clicked?
- Modify page title and subtitle with a plugin
- Ambrosite Next/Previous Post Link Plus or WP next_post_link to cycle through top level category
- How to add options to the plugin page?
- Odd /wp-admin/admin-ajax.php entries showing in Wassup
- wp-mail attachment is not sent for no reason?
- Plugin has added weird data in wp_options, set to autoload
- Setting Email locale before retrieving gettext translations
- how to execute some code after a post is published in WordPress [duplicate]
- Plugin to reformat the post automatically after submitting
- I can’t change permalink in WordPress 4.5.3
- Designing a plugin that uses an iFrame to process data in admin
- How to automatically activate users after registration without activation email?
- Pass PHP variable to javascript
- I want to add member to account in ultimate membership pro
- Using Remove Action Hook in Plugin
- Make downloadable ebook read online without download option
- WordPress rewrite rule depend on meta values not ids
- JS working when used normally but not in wordpress
- Do i need to use a plugin for third party api integration?
- Problem with wordpress has_action() function
- WordPress – WPBakery – Near Footer jump issue
- Dequeue Table of Content font
- Offering a freemium plugin (a free version + paid version)
- Display Woocommerce attribute name above product title
- In woocommerce, is there any way to empty wordpress default mini cart when order placed?
- Remove special characters from filenames
- How can I show login popup when user clicks on download button
- Website content not displayed anymore after updates
- Flexslider empty slide
- WordPress plugin changes not updating
- How to Save settings of custom tab product page in admin side in a database?
- Issue: CSV file upload works only when “View page source” is done
- Meta box: Undefined index
- How to update plugins in a distributed wordpress scenario?
- Shortcode registered from a plugin not recognized
- Make a wordpress site similar to Hot Or Not – Image rating system [closed]
- How to submit readme.txt file in wordpress directory
- wordpress shortcode A executing code from shortcode B
- Plugin for Reading Documents, PDF’s etc
- Simple Data Table Update and Page Integration
- How to add a box for list items?
- How to create plugin list groups?
- Show latest and related articles from 3 different blogs
- Woocommerce custom fields
- This plugin throws error on the events page only [closed]
- Two sites one PC
- PHP if url extension action=discussion condition use [closed]
- Is it possible to set different payment gateway on each Gravity Forms form? [closed]
- How to get URL param for pagination in shortcode?
- How to add an active state class to my info box
- Using ACF to allow user to add and edit multiple saved forms
- Difficult case to solve – Select + select = result(related data)
- How to disable display all posts from all categories?
- Custom Login and Password Reset for BuddyPress Website