2021-03-17 00:27:26 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"description": "List of homepage stats enabled by default",
|
2021-07-08 23:01:43 +00:00
|
|
|
"sourceFile": "https://github.com/woocommerce/woocommerce-admin/blob/6889e695d6bbeff1e0fb607339f83cce18ca6e59/client/homescreen/stats-overview/defaults.js#L5-L16",
|
2021-03-17 00:27:26 +00:00
|
|
|
"name": "woocommerce_admin_homepage_default_stats",
|
2021-07-08 23:01:43 +00:00
|
|
|
"example": "addFilter( 'woocommerce_admin_homepage_default_stats', 'plugin-domain', ( defaultStats ) => defaultStats.filter( ( stat ) => stat !== 'jetpack/stats/views' ) );",
|
|
|
|
"type": "filter"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"description": "Create a Fill for extensions to add client facing custom Navigation Items.",
|
|
|
|
"sourceFile": "https://github.com/woocommerce/woocommerce-admin/blob/6889e695d6bbeff1e0fb607339f83cce18ca6e59/packages/navigation/src/index.js#L254-L270",
|
|
|
|
"name": "WooNavigationItem",
|
|
|
|
"example": "const MyExtenstionNavItem = () => ( <WooNavigationItem item=\"my-extension\">My Extension</WooNavigationItem> ); registerPlugin( 'my-extension', { render: MyExtenstionNavItem, scope: 'woocommerce-admin', } );",
|
|
|
|
"type": "slotFill"
|
2021-03-17 00:27:26 +00:00
|
|
|
}
|
|
|
|
]
|