Plugins that act like local apps can register to be shown in this launcher.

Code Example

`php

add_filter( ‘my_apps_plugins’, function ( $apps ) {
// Add your app to the array. These three keys are mandatory:
$apps[‘friends’] = array(
// Name: The name that will be displayed.
‘name’ => __( ‘Friends’, ‘friends’ ),
// The icon as a URL. You can also use a local URL inside a plugin, using plugins_url().
‘icon_url’ => ‘https://ps.w.org/friends/assets/icon-256×256.png’,
// The URL this should link to.
‘url’ => home_url( ‘/friends/’ ),
);
return $apps;
} );
`

Reviews

0 out of 5 stars

  • Version: 1.0.0
  • Last updated: 3 weeks ago
  • Active installations: 0
  • WordPress version: 5.0
  • Tested up to: 6.6.2
  • PHP version: 5.6