PluginProbe
Authorizer / 3.15.1
Authorizer v3.15.1
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / sample-theme-add-branding / functions.php.sample

functions.php.sample in Authorizer 3.15.1, at sample-theme-add-branding/functions.php.sample

18 lines 670 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // Prevent direct access.
4 defined( 'ABSPATH' ) || exit;
5
6 // Custom function to add a branding option to the Authorizer plugin.
7 function my_authorizer_add_branding_option( $branding_options ) {
8 $new_branding_option = array(
9 'value' => 'your_brand',
10 'description' => 'Custom Your Brand Login Screen',
11 'css_url' => get_stylesheet_directory_uri() . '/extend/authorizer/example/css/example.css',
12 'js_url' => get_stylesheet_directory_uri() . '/extend/authorizer/example/js/example.js',
13 );
14 array_push( $branding_options, $new_branding_option );
15 return $branding_options;
16 }
17 add_filter( 'authorizer_add_branding_option', 'my_authorizer_add_branding_option' );
18