Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,003
- How-to & Troubleshooting
- 129,526
- Creating & Extending
- 25,789
- Requests & Feedback
- 9,495
- Third Party Plugins
- 9,781
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,169
-
I can see potential problems with that $args variable you have setup.
Try setting up the arguments as an array.
$args = array( 'recipients' => $user_id, 'sender_id' => 11, 'subject' => $title, 'content' => $message );
If PMs are disabled, the code will not run. In fact, most likely you’ll get an undefined function error.
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS