PHP code example of inc2734 / wp-basis

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;
  }
);

/**
 * @see https://developer.wordpress.org/reference/functions/wp_link_pages/
 * @param array $args
 * @return array
 */
add_filter(
  'inc2734_wp_basis_wp_link_pages_args',
  function( $args ) {
    return $args;
  }
);

/**
 * @see https://developer.wordpress.org/reference/functions/get_the_posts_pagination/
 * @param array $args
 * @return array
 */
add_filter(
  'inc2734_wp_basis_posts_pagination_args',
  function( $args ) {
    return $args;
  }
);

/**
 * @see https://developer.wordpress.org/reference/functions/get_the_comments_pagination/
 * @param array $args
 * @return array
 */
add_filter(
  'inc2734_wp_basis_comments_pagination_args',
  function( $args ) {
    return $args;
  }
);