create( $user_id, $type, $source, $payload, $object_id ); return; } if ( function_exists( 'as_schedule_single_action' ) ) { as_schedule_single_action( time(), self::HOOK, array( (int) $user_id, $type, $source, $payload, $object_id ? (int) $object_id : null, ), 'forwp_notifications' ); return; } $manager = new ForWP_Notifications_Manager(); $manager->create( $user_id, $type, $source, $payload, $object_id ); } }