We'll create fresh WordPress site with WordPress GPS installed. You have 20 minutes to test the plugin after that site we'll be deleted.
About this plugin
WordPress GPS tries to guide people throughout the WordPress admin jungle. Tell it what you want to do and let it show you the way, with the pretty WP Pointers feature.
Features
This plugin provides an admin panel with a scenario selection. It comes with some default scenarios, which will teach you for example how to:
Each scenario is defined with capabilities the user must have to play it: if the user doesn’t have these capabilities, the scenario won’t be in the select box.
WordPress GPS is available on Github: https://github.com/lpointet/WordPress-GPS
Please feel free to send me pull requests, issues, evolution requests etc.
WordPress GPS provides some hooks to plugin writers:
gb_gps_create_pointer
$pointer_config = array(
'selector' => '#menu-posts',
'content' => '<h3>title</h3><p>content</p>',
'position' => array(
'edge' => 'top',
'align' => 'right',
),
);
$pointer = gb_gps_create_pointer($pointer_config);<h3>Parameters</h3>
selector
(string) The DOM selector of the element on which the pointer will be attached.
Default: ”
content
(string) The content of the pointer.
Default: ”
position
(array) An array of arguments to pass to a jQuery UI Position Widget (see the documentation: http://jqueryui.com/demos/position/#options).
gb_gps_register_scenario
$args = array(
'pointers' => $pointers,
'label' => $label,
'description' => $description,
'capabilities' => array('edit_post'),
);
gb_gps_register_scenario($args);<h3>Parameters</h3>
pointers
(array) An array of GBGPS_Pointer with this structure: [ ‘hook’ => [ $pointer_obj, $pointer_obj2 ], ‘hook2’ => [ $pointer_obj3 ] ], where “hook” is typically the script’s name on the WordPress admin (‘edit.php’) or the keyword “all”.
label
(string) The scenario label, which will appear on the select box.
description
(string) The scenario description, which will appear on the admin panel.
capabilities
(array) An array of capabilities as defined by WordPress or even plugins (‘edit_post’ for example).