PHP code example of voceconnect / voce-featured-posts

1. Go to this page and download the library: Download voceconnect/voce-featured-posts 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-featured-posts example snippets



if( ! class_exists( 'Voce_Featured_Posts' ) ) {
	


	Voce_Featured_Posts::add_type('new-featured-type', 'New Featured Type', 'post', )


	$featured_ids = Voce_Featured_Posts::get_featured_ids( 'post', 'new-featured-type' );