File upload filter


Home Forums Front End PM PRO File upload filter

This topic is: Resolved

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39967
    little.chimp
    Participant

    Can you show me an example of a filter for the file upload in the reply to section, please? I’m looking to replace the input with icons.

    The code I’d like to filter/replace is on line 347 of includes/class-fep-form.php

    case 'file' :
    					wp_enqueue_script( 'fep-attachment-script' );
    					?>
    						<div id="fep_upload">
    							<div class="fep-attachment-field-div">
    								<input class="fep-attachment-field-input" type="file" name="<?php echo esc_attr( $field['name'] ); ?>[]" /><a href="#"><?php echo __( 'Remove', 'front-end-pm' ); ?></a>
    							</div>
    						</div>
    						<a href="#"><?php echo __( 'Add more file', 'front-end-pm' ) ; ?></a>
    						<div id="fep-attachment-note"></div>
    					<?php
    					break;
    
    #39976
    Shamim Hasan
    Keymaster

    You can use like following

    add_action( 'fep_form_field_output_file', function( $field, $errors ){
        //Output your file input field here
    }, 10, 2);
    
Viewing 2 posts - 1 through 2 (of 2 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.