Without seeing your complete code, it’s a bit difficult to answer. Also it’s a big vague when you say that it’s not calling the function (are you getting any errors / warnings?) If you’ve got error reporting turned off, please turn it on.
Also, try this:
require_once('reviews.php');
reviewsPanel();
If the file is not included, “require” will throw a Fatal Error.
One other thing I see is that the echo “test” in the reviewPanel() function is outside the PHP tags. So that will not be executed as PHP code.
Related Posts:
- How Restrict access to admin dashboard by specific static ip?
- Why isn’t admin_notices displaying my text? [Simple Plugin, Beginner]
- WordPress takes too much time (100 seconds) to load – Front end and back end
- WordPress on AWS with ELB
- How to make multiple admin pages for one plugin?
- How can i force wp-admin to use 2-column dashboard layout? [closed]
- WordPress fatal error from php protocol codes
- How can we get this dynamically as this folder may not be by the same name always → wp-admin
- Calling PHP function with AJAX
- Is admin section completely customizable in terms of styling?
- Admin login substantially slower on production server
- How to add php stylesheet to admin section instead of admin_head hook
- Allow direct access to files/folders within WordPress to replace wp-admin
- PHP FATAL ERROR
- What are the differences between WPINC and ABSPATH?
- How do I call wp_get_current_user() in a plugin when plugins are loaded before pluggable.php?
- How to stop showing admin notice after close button has been clicked
- How to make simply “report” button on posts
- Get php var inside javascript file (making plugin)
- Best way to manage a lot of pages in Wp Admin [closed]
- Find out what is using PHP sessions in WordPress
- How do I add to the list table a filter?
- Bug in Stackoverflow styled badge system script
- Change destination author link
- How can I include PHP-Code to my post?
- how to display all posts Custom fields dynamically?
- Seriously stuck with some custom meta box/plugin stuff
- explanation for activate_plugin function in wordpress core
- WordPress PHP plugin – Settings page error
- Get product attribute for Simple product in WooCommerce
- Creating an Exit Confirmation Popup
- Uncaught Error: Call to undefined function get_user_by() after moving function from theme to plugin
- Display a text message if the field is not found and not if found
- Reposition Woocommerce Message
- After activating a Plugin, /wp-admin is no longer accessible
- Scope for PHP Variables Assigned in functions.php or a plugin
- Add a plugin before main container
- Shortcode to generate and save password in a file
- I don’t understand how this parameter works..?
- Function to prevent users from trashing comments
- problems with wordpress and php version 5.3.3-1
- Prevent a plugin from being automatically activated
- WordPress Redirect Not Working – AJAX Callback Response Not Picked Up
- Saving changes in wp_editor
- Output array into one table cell
- how to change the verification url of pie register plugin of wordpress?
- wordpress plugin is not activating from widget
- Is there an easy way to flag posts in the admin area?
- Using meta_query to get date type values from post_meta table WordPress
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- wp_get_post_terms is difference obj model than the one in rest api response
- How to fetch products with the price in a page on woocommerce using a form or live search with php
- WpDataTables – View Image Directory
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- Server configuration for WordPress – Do I need install PHP-SSH extensions for WordPress on Fedora28?
- Using plugin functions/methods within templates
- WordPress shows error related to allow_url_fopen
- Delete mobile menu button [closed]
- How to replace WordPress Media Upload Window with user’s device window?
- Dynamic admin submenu
- Using color picker in plugin, does input attribute order matter?
- How to include this jQuery File in wordpress?
- Include a php file from another plugin
- Getting taxonomy images to display on single-post with their terms
- How can I fetch data from another website to my wordpress website with mysql database
- Switch from wp-cron to a server cron job
- Theme Functions run a function upon activation or preview
- Is this plugin safe to run?
- Custom Plugin scripts from admin working in frontend
- get_post_meta shortcode returns empty field
- How to properly enqueue jQuery knob on WordPress without conflict?
- How to add a prefix to a WordPress post preview url?
- i can not access the post in custom template of my wordpress plugin
- How to get a specific string from a url
- Easiest way to load/fire a handful of functions, IF checkbox is checked?
- Add custom WordPress admin page with pretty url via code
- How to avoid the 403 Forbidden error in a WP Plugin with Ajax and PHP
- How To Use htaccess to Rewrite Link Structure for a Page that is Generated Programatcially
- WordPress logout appends cache/all/index.php to the site_url()
- How to echo a PHP Code After the Content
- Show custom taxonomy in theme
- Update (a function) post’s featured image as soon as $image_url changes
- Social sharing plugin directing to blank page after post sharing
- How to order users alphabetically by name? in plugin UPME
- Media Playlist Plugin
- WordPress Background Audio – Continous AutoPlay
- Replace Dash (-) and Underscore ( _ ) with Space
- How use Dynamic hyperlink on each wordpress post?
- Screen Options drop-down does not show
- How to execute init or woocommerce_init only for checkout page
- how to restore wordpress backup(.rar) manually?
- wordpress jquery is not defined because the head tag is empty
- Two sites one PC
- how to show selected options drop down menu values in attributes field in after saving post.php
- Can’t use updated variables in handle function
- Accessing Correct Database to Create REST API Endpoint
- How do I replace a logo image that’s hard-coded into a plugin’s logo.php file?
- Read page- or post-content across different builder-plugins
- How to make WordPress Plugin run on single specific Admin Page
- White Screen of Death on WordPress Website