Quform Upload URL Filter

Home Forums Quform WordPress Quform Upload URL Filter

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #28177
    Venom
    Participant

    Hi Ally,

    I know there is a function named getUploadsUrl in Quform.php to get the URL to the WP uploads directly. Is it possible to add a filter before return the $uploads URL. User would like to modify the URL path for customization.


    public static function getUploadsUrl($extra = '')
    {
    $uploads = wp_upload_dir();

    $urlpath = apply_filters( 'quform_upload_url', Quform::pathExtra($uploads['baseurl'], $extra) );

    return $urlpath;
    }

    Regards,

    Venom

    #28205
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #28209
    Venom
    Participant

    Hi Ally,

    Great support. I would update my code as well to include the “s” for the next update. Please mark it as resolved.

    Regards,

    Venom

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy