Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,830
- How-to & Troubleshooting
- 129,814
- Creating & Extending
- 25,864
- Requests & Feedback
- 9,509
- Third Party Plugins
- 9,821
- Showcase
- 3,317
- Ideas
- 1,382
- Miscellaneous
- 9,178
-
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.