We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0413221 commit 84d45a5Copy full SHA for 84d45a5
1 file changed
src/Controller.php
@@ -301,6 +301,16 @@ public static function getAdminUrl( string $slug ): string {
301
return admin_url( 'admin.php?page=' . $page );
302
}
303
304
+ public static function getAdminAjaxUrl( string $slug ): string {
305
+ if ( $slug === 'run' ) {
306
+ $action = 'static-deploy';
307
+ } else {
308
+ $action = self::getHookName( $slug );
309
+ }
310
+
311
+ return admin_url( 'admin-ajax.php?action=' . $action );
312
313
314
public static function getAdminPostUrl( string $slug ): string {
315
if ( $slug === 'run' ) {
316
$page = 'static-deploy';
0 commit comments