PHP Functions

feuGT_show();

This is the main function to display Frontend Upload.

Receives 2 optional parameter

  1. upload_to(number or string =”current”) – If you wish to attach all the files uploaded on the current displayed to a specific page/post/custom post.
    Example:
    feuGT_show(723) – All files uploaded from this button will be attached to post 723.
    feuGT_show('current') – All files uploaded from this button will be attached to current post/page/custom post.
  2. logged_in_only(boolean) – If you wish to display the uploader only to registered users.
    feuGT_show(null, true) – The uploader will only be displayed to logged in users.

feuGT_show_attachments();

Used to display files uploaded via Frontend Upload Plugin.
Parameters

  • $post_id (default =”) – in case you wish to show files uploaded using Frontend Upload to a direct post. For example: <?php feuGT_show_attachments(5); ?>
  • $echo (default=true) – in case you wish to echo or to return files uploaded using Frontend Upload to a direct post. For example: <?php feuGT_show_attachments(”,false); ?>
  • $typetoget (default=’all’) – In case you wish to get files uploaded specifically to Custom Post Type or to WordPress Media, or both.
  • $logged_in_only (default=false) – In case you wish that only logged in users can see the attachments.

Leave a Reply