| 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 |
|