call_user_func_array($this->controller, $this->method, $this->params);
This call is wrong, check this example on the official PHP documentation. Your code should be the following instead: (using array syntax for class methods).
call_user_func_array([$this->controller, $this->method], $this->params);
// ^ ^
Related Posts:
- What is PHPSESSID?
- WordPress Themes and PHP unit
- What would be a PHP command to erase all posts from category X from the last month?
- How to insert PHP code in a WordPress Post
- Creating wordpress user registration form
- How to reduce the database query-es
- category not display in word press grammatically
- “Notice: Undefined variable: content” is showing [closed]
- How should I best target dynamically served content?
- Way to display “Yesterday”, “Today”
- Have CSS Class Added with `is_page()` WP function
- Slide in Panel WordPress Post
- Shortcode Inside Class Not Working
- Custom admin page: How to save changes specific to users
- the_title gives me the page’s title not the post title in the following code
- Category Thumbnail Display – How to display ONLY the main Category
- comments_number display outside specified span
- Using a `Template Parts` folder instead of an `Includes` folder in a Custom WordPress Theme
- class click counter save number
- Get stock by custom meta field on all Woocommerce variable products
- My form action url is being prepended with a directory that does not exists
- Getting id of poll from WP database
- Passing the custom field values in the wp_get_current_user array function
- custom fields wordpress
- PHP 8, AJAX mail form to function.php doesn’t work
- Changes in permalink structure in WordPress and how to apply to in-site links
- Ajax request not sending to server and returning – wp-admin/admin-ajax.php 400
- how to make custom ajax handler?
- Checkbox doesn’t stay checked, conten
- Theme requires allow_url_include = on in php.ini
- Not connecting to database in file with multiple MySQL connections
- Way to bulk make all my tags lowercase?
- Variable not staying set
- Add login hyperlink to secondary navigation menu
- Warning: Illegal string offset on theme options page [closed]
- How do I create a numbered list with PHP? [closed]
- How to pass a variable to get_template_part that’s updated every time the template part is called?
- $_SESSION variable not saving on page refresh or new page
- Form search query – displaying ACF “Post Object” field as results
- Add additional functions file instead of functions.php
- How to rename woocommerce-billing-fields
- How can i change variable if condition is not met
- get_page_template_slug returns incorrect path
- Sorting dynamic select/dropdown for Contact Form 7 of Modern Tribe Events posts
- Change page password every day (predictable password ;) )
- Reading settings in the home page precisely home.php
- Action Hook Inside WordPress Plugin Shortcode
- How to display author above content-single.php post
- Calling function in loop causes repeat data
- Changes made on php.ini have no effect on wordpress
- how to get attached file url for current post?
- Is there a hack for using is_page() within the function.php file?
- Add a select-option to the default widgets
- WordPress doesn’t load HTML
- WordPress low speed after migrating to new host
- WordPress Search Ajax + Isotope + InfiniteScroll
- Show all people who commented on all posts by an author
- WordPress create custom XML RSS feed template
- How to pass values from one function to the other using an array variable
- Custom global variable not working in function
- dynamic php menu with hidden sub-categories only showing when the category name is clicked
- display most active user sort by comment count [Solved]
- get_the_author_meta( ‘ID’ ) just return 1
- How to bind each “the_content” elements to a custom variables
- add_filter() inside another add_filter()
- Trying to publish a little bit of Javascript on the homepage AND at the bottom
- URL rewrite rule
- Custom Bulk Actions handler not firing
- Get field in readable word
- Getting data from serilized array
- need to edit php file of child theme to remove an element
- How can disable wordpress emails notifications?
- Rotating Header Images
- Font-Family does not looks like how it should be [closed]
- Update only some custom user fields
- my site show this symbol (::) between site title and tagline
- News and Featured image
- Add code only for blog posts
- Removing backstretch image from pages/posts
- Undefined index notice when using the $args parameter in add_settings_field()
- Saving category as insert post
- ACF Date fileds to Age Convert [closed]
- WPMU – How to echo only one URL
- Inserting a shortcode into a genesis menu?
- WCFM Custom form
- Stop breadcrumb function retrieving custom post type template name
- Slug not being updated using wp_insert_post
- How do I run the following script from my articles page?
- getJSON response to PHP
- Custom plugin with shortcode not working
- Get category name of current post (CPT UI)
- Filtering image class at output
- Three different queries on same page
- Removing the add to cart button from specific product pages
- counting slugs not working?
- How can I run a second wp_remote_post() based on the response of the first?
- Deleting all CPT related to user deleting
- Import WordPress header / footer into an external page(s)
- Unable to logout correctly after wp-login file was modified
- Display data with a yes or no condition ACF