Support » Plugin: Tuxedo Big File Uploads » Settings fields are invisible !

  • Hi,

    Firstly, thanks for your plugin.

    I’ve successfully deployed your plugin on first WordPress install. Settings fields in Settings >> Medias are visible. On second WordPress install, theses fields are not visible.

    To fix this bug, i do modify settings_api_init() function like below with add_settings_section :

    
    	public function settings_api_init() {
    
    	    add_settings_section( 
    	        'uploads',
    	        __( 'Tuxedo Big Files Upload Parameters', 'tuxedo-big-file-uploads' ), 
    	        '__return_false', 
    	        'media' 
    	    );
    
    		add_settings_field(
    			'tuxbfu_max_upload_size',
    			__( 'Maximum Upload Size (MB) (0 for no limit)', 'tuxedo-big-file-uploads' ),
    			array( $this, 'settings_max_upload_size_callback' ),
    			'media',
    			'uploads'
    		);
    		add_settings_field(
    			'tuxbfu_chunk_size',
    			__( 'Chunk Size (kb)', 'tuxedo-big-file-uploads' ),
    			array( $this, 'settings_chunk_size_callback' ),
    			'media',
    			'uploads'
    		);
    		add_settings_field(
    			'tuxbfu_max_retries',
    			__( 'Max Retries', 'tuxedo-big-file-uploads' ),
    			array( $this, 'settings_max_retries_callback' ),
    			'media',
    			'uploads'
    		);
    		register_setting( 'media', 'tuxbfu_max_upload_size', 'intval' );
    		register_setting( 'media', 'tuxbfu_chunk_size', 'intval' );
    		register_setting( 'media', 'tuxbfu_max_retries', 'intval' );
    	}

    Best regards

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Settings fields are invisible !’ is closed to new replies.