Download wp-calypso/client/lib/domains/get-primary-domain.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 224 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/domains/get-primary-domain.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/domains/get-primary-domain.js
-
curl -L -o get-primary-domain.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/domains/get-primary-domain.js
224 Bytes
| import wpcom from 'calypso/lib/wp'; | |
| export function getPrimaryDomain( siteId, onComplete ) { | |
| wpcom | |
| .site( siteId ) | |
| .domain() | |
| .getPrimary( function ( serverError, data ) { | |
| onComplete( serverError, data ); | |
| } ); | |
| } | |