{"id":21602061,"url":"https://github.com/wpbp/pointerplus","last_synced_at":"2026-03-08T08:33:23.910Z","repository":{"id":25912677,"uuid":"29353527","full_name":"WPBP/PointerPlus","owner":"WPBP","description":"Simple pointers for WP Admin","archived":false,"fork":false,"pushed_at":"2022-09-13T11:02:17.000Z","size":50,"stargazers_count":20,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-25T07:21:03.821Z","etag":null,"topics":["wordpress","wordpress-php-library"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WPBP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-16T15:14:17.000Z","updated_at":"2024-09-03T08:32:22.000Z","dependencies_parsed_at":"2022-08-08T02:15:09.814Z","dependency_job_id":null,"html_url":"https://github.com/WPBP/PointerPlus","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/WPBP/PointerPlus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WPBP%2FPointerPlus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WPBP%2FPointerPlus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WPBP%2FPointerPlus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WPBP%2FPointerPlus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WPBP","download_url":"https://codeload.github.com/WPBP/PointerPlus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WPBP%2FPointerPlus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272253351,"owners_count":24900886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["wordpress","wordpress-php-library"],"created_at":"2024-11-24T19:11:52.762Z","updated_at":"2026-03-08T08:33:23.870Z","avatar_url":"https://github.com/WPBP.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PointerPlus\n[![License](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)\n![Downloads](https://img.shields.io/packagist/dt/wpbp/pointerplus.svg)    \n\nSuper pointer creation for WP Admin\n\n## Install\n\n`composer require wpbp/pointerplus:dev-master`\n\n## Features\n\n* Pointer autoposition by selector (WP-Pointer API)\n* Remember the Pointer  (WP-Pointer API)\n* Show by Post Type\n* Show by page (ex: users.php)\n* Custom dashicon (https://developer.wordpress.org/resource/dashicons)\n* Hide feature\n* Custom button with JS callback\n* Custom PHP Code to execute at loading of the page\n* Reset the pointer by prefix (by user id)\n* Wait the available selector\n* Create a wizard-like system\n\n## Example\n\n```php\n$pointerplus = new PointerPlus( array( 'prefix' =\u003e 'your-pointer-domain' ) );\n// With this line of code you can reset all the pointer with your prefix\n// $pointerplus-\u003ereset_pointer();\n\nfunction custom_initial_pointers( $pointers, $prefix ) {\n\t/*\n\t  Default parameters:\n\t  $defaults = array(\n\t  'class' =\u003e 'pointerplus',\n\t  'width' =\u003e 300, //fixed value\n\t  'align' =\u003e 'middle',\n\t  'edge' =\u003e 'left',\n\t  'post_type' =\u003e array(),\n\t  'pages' =\u003e array(),\n\t  'next' =\u003e 'the id of the pointer to jump on Next button click',\n\t  // Or a custom js solution\n\t  'jsnext' =\u003e '' //empty [t = pointer instance, $ = jQuery]\n\t  'phpcode' =\u003e function() //executed on admin_notices action\n\t  'show' =\u003e 'open' //default,\n\t  'next' =\u003e 'id' // On close the pointer show to that pointer\n\t  );\n\t */\n\n\treturn array_merge( $pointers, array(\n\t\t$prefix . '_settings' =\u003e array(\n\t\t\t'selector' =\u003e '#menu-settings',\n\t\t\t'title' =\u003e __( 'PointerPlus Test', 'your-pointer-domain' ),\n\t\t\t'text' =\u003e __( 'The plugin is active and ready to start working.', 'your-pointer-domain' ),\n\t\t\t'width' =\u003e 260,\n\t\t\t'icon_class' =\u003e 'dashicons-admin-settings',\n\t\t\t'jsnext' =\u003e \"button = jQuery('\u003ca id=\\\"pointer-close\\\" class=\\\"button action thickbox\\\" href=\\\"#TB_inline?width=700\u0026height=500\u0026inlineId=menu-popup\\\"\u003e\" . __( 'Open Popup' ) . \"\u003c/a\u003e');\n                    button.bind('click.pointer', function () {\n                        t.element.pointer('close');\n                    });\n                    return button;\",\n\t\t\t'phpcode' =\u003e custom_phpcode_thickbox()\n\t\t),\n\t\t$prefix . '_posts' =\u003e array(\n\t\t\t'selector' =\u003e '#menu-posts',\n\t\t\t'title' =\u003e __( 'PointerPlus for Posts', 'your-pointer-domain' ),\n\t\t\t'text' =\u003e __( 'One more pointer.', 'your-pointer-domain' ),\n\t\t\t'post_type' =\u003e array( 'post' ),\n\t\t\t'icon_class' =\u003e 'dashicons-admin-post',\n\t\t\t'width' =\u003e 350,\n\t\t),\n\t\t$prefix . '_pages' =\u003e array(\n\t\t\t'selector' =\u003e '#menu-pages',\n\t\t\t'title' =\u003e __( 'PointerPlus Pages', 'your-pointer-domain' ),\n\t\t\t'text' =\u003e __( 'A pointer for pages.', 'your-pointer-domain' ),\n\t\t\t'post_type' =\u003e array( 'page' ),\n\t\t\t'icon_class' =\u003e 'dashicons-admin-post'\n\t\t),\n\t\t$prefix . '_users' =\u003e array(\n\t\t\t'selector' =\u003e '#menu-users',\n\t\t\t'title' =\u003e __( 'PointerPlus Users', 'your-pointer-domain' ),\n\t\t\t'text' =\u003e __( 'A pointer for users.', 'your-pointer-domain' ),\n\t\t\t'pages' =\u003e array( 'users.php' ),\n\t\t\t'icon_class' =\u003e 'dashicons-admin-users'\n\t\t),\n\t\t$prefix . '_settings_tab' =\u003e array(\n\t\t\t'selector' =\u003e '#show-settings-link',\n\t\t\t'title' =\u003e __( 'PointerPlus Help', 'your-pointer-domain' ),\n\t\t\t'text' =\u003e __( 'A pointer with action.', 'your-pointer-domain' ),\n\t\t\t'edge' =\u003e 'top',\n\t\t\t'align' =\u003e 'right',\n\t\t\t'icon_class' =\u003e 'dashicons-welcome-learn-more',\n\t\t\t'next' =\u003e $prefix . '_contextual_tab'\n\t\t),\n\t\t$prefix . '_contextual_tab' =\u003e array(\n\t\t\t'selector' =\u003e '#contextual-help-link',\n\t\t\t'title' =\u003e __( 'PointerPlus Help', 'your-pointer-domain' ),\n\t\t\t'text' =\u003e __( 'A pointer for help tab.\u003cbr\u003eGo to Posts, Pages or Users for other pointers.', 'your-pointer-domain' ),\n\t\t\t'edge' =\u003e 'top',\n\t\t\t'align' =\u003e 'right',\n\t\t\t'icon_class' =\u003e 'dashicons-welcome-learn-more',\n\t\t\t'show' =\u003e 'close'\n\t\t)\n\t\t\t) );\n}\n// Your prefix\nadd_filter( 'your-pointer-domain-pointerplus_list', 'custom_initial_pointers', 10, 2 );\n\nfunction custom_phpcode_thickbox() {\n\tadd_thickbox();\n\techo '\u003cdiv id=\"menu-popup\" style=\"display:none;\"\u003e\n\t\t\t\u003cp style=\"text-align: center;\"\u003e\n\t\t\t\t This is my hidden content! It will appear in ThickBox when the link is clicked.\n\t\t\t\t \u003ciframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/EaWfDuXQfo0\" frameborder=\"0\" allowfullscreen\u003e\u003c/iframe\u003e\n\t\t\t\u003c/p\u003e\n\t\t\u003c/div\u003e';\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpbp%2Fpointerplus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpbp%2Fpointerplus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpbp%2Fpointerplus/lists"}