GRAYBYTE WORDPRESS FILE MANAGER4581

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/swamivivekananda.co.in/wp-content/plugins/suremails/src/api/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/swamivivekananda.co.in/wp-content/plugins/suremails/src/api//plugins.js
// @api/plugins.js
import apiFetch from '@wordpress/api-fetch';
import { __ } from '@wordpress/i18n';

/**
 * Fetches the list of installed and active plugins.
 *
 * @return {Promise<Object>} The object containing installed and active plugins.
 */
export const fetchInstalledPluginsData = async () => {
	try {
		const response = await apiFetch( {
			path: '/suremails/v1/installed-plugins',
			method: 'GET',
			headers: {
				'Content-Type': 'application/json',
				'X-WP-Nonce': suremails.nonce,
			},
		} );

		if (
			response?.success &&
			response?.plugins?.installed &&
			response?.plugins?.active
		) {
			return {
				installed: response.plugins.installed,
				active: response.plugins.active,
			};
		}

		throw new Error(
			__( 'Invalid data received from server.', 'suremails' )
		);
	} catch ( error ) {
		throw new Error(
			error.message ||
				__( 'Failed to fetch installed plugins.', 'suremails' )
		);
	}
};

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:27
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:27
giriqfky / giriqfky
0644
auth.js
0.6 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
connections.js
4.318 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
dashboard.js
1.515 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
logs.js
3.036 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
onboarding.js
0.759 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
plugins.js
0.908 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644
settings.js
2.309 KB
June 23 2025 07:12:38
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF