PHP code example of voceconnect / voce-media-setting

1. Go to this page and download the library: Download voceconnect/voce-media-setting library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

voceconnect / voce-media-setting example snippets


if( ! class_exists( 'Voce_Media_Setting' ) ) {
    


    $page->$group->add_setting( "Field Title", "field_id", array(
        'display_callback'   => 'vs_display_media_select',
        'sanitize_callbacks' => array( 'vs_sanitize_media_select' )
    ) );