Skip to content

Commit d3cb67c

Browse files
committed
remove extendify admin menu for embed.
Signed-off-by: Kev Provance <[email protected]>
1 parent a65e46c commit d3cb67c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

extendify-sdk/app/Welcome.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ class Welcome
2323
*/
2424
public function __construct()
2525
{
26-
add_action( 'admin_menu', [ $this, 'addAdminMenu' ] );
26+
if ('standalone' === $GLOBALS['extendify_sdk_partner']) {
27+
add_action( 'admin_menu', [ $this, 'addAdminMenu' ] );
2728

28-
$this->loadScripts();
29+
$this->loadScripts();
30+
}
2931
}
3032

3133
/**

0 commit comments

Comments
 (0)