topmercato.com

Les pubbs sont gérés par le plugin Ad Inserter ⇒ https://www.topmercato.com/wp-admin/options-general.php?page=ad-inserter.php

Certains éléments du thèmes (comme la listing sur les pages clubs, joueurs et pays) sont géré par Element ⇒ https://www.topmercato.com/wp-admin/edit.php?post_type=gp_elements

Du coup on retourve le PHP directement dedans.

TOP MERCATO WEB STORIES CAPABILITIES

if(is_admin() && isset($_GET['addcap'])) {

//$editor_role = get_role( 'editor' );

//$author_role = get_role( 'author' );

/*

$editor_role->add_cap('manage_terms_web-stories');

$editor_role->add_cap('edit_terms_web-stories');

$editor_role->add_cap('delete_terms_web-stories');

$editor_role->add_cap('assign_terms_web-stories');

$editor_role->add_cap('edit_web-story');

$editor_role->add_cap('read_web-story');

$editor_role->add_cap('delete_web-story');

$editor_role->add_cap('edit_web-stories');

$editor_role->add_cap('edit_others_web-stories');

$editor_role->add_cap('delete_web-stories');

$editor_role->add_cap('publish_web-stories');

$editor_role->add_cap('read_private_web-stories');

$editor_role->add_cap('delete_private_web-stories');

$editor_role->add_cap('delete_published_web-stories');

$editor_role->add_cap('delete_others_web-stories');

$editor_role->add_cap('edit_private_web-stories');

$editor_role->add_cap('edit_published_web-stories');

$author_role->add_cap('manage_terms_web-stories');

$author_role->add_cap('edit_terms_web-stories');

$author_role->add_cap('delete_terms_web-stories');

$author_role->add_cap('assign_terms_web-stories');

$author_role->add_cap('edit_web-story');

$author_role->add_cap('read_web-story');

$author_role->add_cap('delete_web-story');

$author_role->add_cap('edit_web-stories');

$author_role->add_cap('edit_others_web-stories');

$author_role->add_cap('delete_web-stories');

$author_role->add_cap('publish_web-stories');

$author_role->add_cap('read_private_web-stories');

$author_role->add_cap('delete_private_web-stories');

$author_role->add_cap('delete_published_web-stories');

$author_role->add_cap('delete_others_web-stories');

$author_role->add_cap('edit_private_web-stories');

$author_role->add_cap('edit_published_web-stories');

*/

}