PHP code example of bueltge / authenticator

1. Go to this page and download the library: Download bueltge/authenticator 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/ */

    

bueltge / authenticator example snippets


    $authenticator_options = apply_filters( 'authenticator_get_options', array() );
    

    add_filter( 'authenticator_bypass', '__return_true' );
    

    add_filter( 'authenticator_bypass_feed_auth', '__return_true' );
    

    add_action( 'plugins_loaded', function() {
        add_filter( 'authenticator_exclude_posts', function( $titles ) {
            $titles[] = 'Contact'; // here goes the post-title of the post/page you want to exclude
            return $titles;
        } );
    } );