[RSS Feed/News] UserAlert Author

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
The following code has worked for quite some time, but I've moved it to its own class and am now getting the statement:

Expected parameter of type 'void|\XF\Entity\User', '\XF\Mvc\Entity\Entity' provided

PHP:

Code:
   /**
     * @param $post
     *
     * @return void
     */
    public function setAlert($post){

        $author = XF::app()->find('XF:User', $post->post_author);

        // Get thread ID from WordPress post meta in order to get first post id
        $thread_ID = get_post_meta(...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom