Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,839
- How-to & Troubleshooting
- 129,848
- Creating & Extending
- 25,883
- Requests & Feedback
- 9,529
- Third Party Plugins
- 9,828
- Showcase
- 3,316
- Ideas
- 1,386
- Miscellaneous
- 9,177
-
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.