1. Go to this page and download the library: Download inc2734/wp-basis 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/ */
inc2734 / wp-basis example snippets
// When Using composer auto loader
$Basis = new Inc2734\WP_Basis\Bootstrap();
/**
* oEmbed container size is 16 to 9.
* Return domains if you want to make the size 4 to 3 in some domains.
*
* @param array $domains
* @var string https?:\/\/www\.slideshare\.net
* @var string https?:\/\/speakerdeck\.com
* @return array
*/
add_filter(
'inc2734_wp_basis_4to3_oembed_domains',
function( $domains ) {
return $domains;
}
);