The problem is that $user_id = bbp_get_topic_author_id( $topic_id = 0 )
is malformed. You need to remove the = 0
from $topic_id = 0
and make sure that the variable $topic_id
actually contains the ID of the topic you are trying to get the author of.
Related Posts:
- Update plugin from personal API
- Does a plugin’s “main” file need to be named the same as the folder containing it?
- Symlinked plugin directory doesn’t appear in Admin
- How do I unlock a post programmatically?
- Customizing subject in comment notification e-mails
- enqueue script only if it is not already enqueue
- How can I limit functionality in one version of a plugin?
- Plugin child folder?
- Custom data-id wp_enqueue_script
- merging an array to an existing array using add_filter
- Is it possible to set up multistore in Woocommerce? [closed]
- How use %like% in sql statement wordpress
- Can I use a form in a dashboard widget?
- Retrieving plugin options value saved through setting
- How to ‘clone’ a wp plugin to make small changes
- MITM risk of not sanitizing?
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- How to slice an array using posts_per_page? [closed]
- Edit Yoast SEO breadcrumbs output [closed]
- Enqueue WordPress plugin scripts below all other JS
- woocommerce payment gateway callback not firing [closed]
- White page by using filter template_include
- Is there any kind of theme on WordPress to sell my own movies?
- How to export post 2 posts WordPress plugin data [closed]
- Customization API for plugin development
- User switching only with specific role and return
- Fromcraft Plugin On click submit button [closed]
- Suggestions on Approach to New Plugin I’m Stuck On
- Adding Font Awesome to WP Plugin
- How to redirect users to their profile after they successfully edit their profile
- Display custom content using page.php from theme
- WordPress error: Options page Setting_ not found in the allowed options list
- What is wordpress way to access a plugin’s classes/models to load custom post type data?
- Translations for my plugin don’t show up
- flush_rewrite_rules() not working with update_option_{$option}
- How to ignore extra whitespaces in translation functions like _e?
- How does translation (gettext) work for translating config file of plugin?
- how to add a comment button to be displayed only for the posts in the home page [closed]
- The “Child Pages Shortcode” plugin, block template
- How do I determine if the user who registered is not spam?
- using wp_footer hook in a plugin
- How to get a custom page through plugin?
- How to data add to table when update post wordpress? when we clicked!
- can’t unzip file
- WooCommerce – I want to add functionality of one plugin to another plugin — best approach?
- Want to create custom design of progress indicator in wpforms
- Using Class loader in WordPress boilerplate
- Check if theme supports sidebar
- How to prepare (compress/zip) a plugin to enable updating instead of adding new instance?
- WC Fix Attributes – ‘Add New’ Not Searchable/Delayed
- How to display the custom post related blog by category?
- WP Forms not displaying,becomming an fatal error
- How to dynamically add template in Innerblock?
- How to create a page with the selected template after activating the plugin
- $wpdb->insert not working inside save_post tag
- How to check for already existing plugin versions on activation? and prevent errors
- I enabled debugging but I still get the same message: There has been a critical error on your website
- wp_mail function not working in WordPress Plugin Boilerplate
- When/where would want to attach other classes to the base class in a WordPress plugin?
- Using foreach loop for `$instance` of form and update array widget iteration
- How to call a function from inside class to outside class
- Passing function into add_action always returns the first argument
- Paid Membership Pro displaying a user name in PHP
- Make another copy of a plugin and install it
- Store admin page into variable
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- WP Plugin CSS not being applied to page
- Overwriting Plugin’s Ajax callback function from theme
- How can I get the Post ID and Post Type within a Must Use Plugin?
- Creating Nested custom fields
- plugin not hooking to my custom hook
- Populate select option with JSON file
- Enahanced search for edit.php and custom post type
- Unable to sync woocommerce variations
- Can’t find variable is_single in my jQuery plugin
- WordPress Cron function is not working
- How to Add Jquery FullCalendar in wp plugin in admin
- Plugin hook breaks new WP 4.0 media library grid view?
- How to get site homepage from plugin?
- Get page type to display content
- Widget redirecting to home page
- Unable to show 4 products in a row
- Is an Office a custom post type [closed]
- WordPress check box unchecked on null value ternary operator [plugin development]
- How to add image for custom taxonomy
- I am using multi image metabox plugin but I did get how to display the images in templete?
- WordPress Hooks : Where to place callbacks that repetitively yield the same effect?
- wordpress Ajax success doesn’t return the value
- How to open author url linked to a new tab in settings page in the WordPress plugin list
- How can I properly sanitize the update_option in WordPress?
- Why is my menu page not being displayed?
- How to add custom html to the Media > Attachment Details modal?
- manage_{taxonomy}_custom_column not working
- Suitable hook when creating, updating and deleting posts programmatically
- How to be Variables and options must be escaped when echo’d?
- Remove embed url for internal links
- How to override plugin function in code snippets WordPress
- How can I gather forums posted by visitors from different sites in one place? [duplicate]
- How to make content as required in custom post type?
- How to create a “Most Popular” & “Latest” TAB in WordPress