add tab options

This commit is contained in:
2020-05-26 13:11:13 +02:00
parent 75fdf97b01
commit bf03d86d95
5 changed files with 171 additions and 76 deletions
+21
View File
@@ -19,6 +19,27 @@ if ( file_exists( $composer_autoload ) ) {
$timber = new Timber\Timber();
}
if( function_exists('acf_add_options_page') ) {
acf_add_options_page(array(
'page_title' => 'Information',
'menu_title' => 'Information',
'icon_url' => 'dashicons-buddicons-activity',
'capability' => 'edit_posts',
'redirect' => false
));
acf_add_options_page(array(
'page_title' => 'Partenaires',
'menu_title' => 'Partenaires',
'icon_url' => 'dashicons-buddicons-activity',
'capability' => 'edit_posts',
'redirect' => false
));
}
/**
* This ensures that Timber is loaded and available as a PHP class.
* If not, it gives an error message to help direct developers on where to activate