Download wp-calypso/client/state/selectors/get-atomic-hosting-php-version.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 377 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/get-atomic-hosting-php-version.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/selectors/get-atomic-hosting-php-version.js
-
curl -L -o get-atomic-hosting-php-version.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/get-atomic-hosting-php-version.js
377 Bytes
| import 'calypso/state/hosting/init'; | |
| /** | |
| * Returns the PHP version used for given siteId | |
| * @param {Object} state Global state tree | |
| * @param {number|null} siteId The ID of the site we're querying | |
| * @returns {string} PHP Version used, or '' | |
| */ | |
| export function getAtomicHostingPhpVersion( state, siteId ) { | |
| return state.atomicHosting?.[ siteId ]?.phpVersion ?? ''; | |
| } | |