File manager - Edit - /home/palg2351/public_html/wp-content/plugins/code-snippets/js/components/SnippetForm/fields/PriorityInput.tsx
Back
import React from 'react' import { __ } from '@wordpress/i18n' import { getSnippetType } from '../../../utils/snippets' import { useSnippetForm } from '../../../hooks/useSnippetForm' export const PriorityInput: React.FC = () => { const { snippet, setSnippet, isReadOnly } = useSnippetForm() return 'html' === getSnippetType(snippet) ? null : <p className="snippet-priority" title={__('Snippets with a lower priority number will run before those with a higher number.', 'code-snippets')} > <label htmlFor="snippet_priority">{`${__('Priority', 'code-snippets')} `}</label> <input type="number" id="snippet_priority" name="snippet_priority" value={snippet.priority} disabled={isReadOnly} onChange={event => setSnippet(previous => ({ ...previous, priority: parseInt(event.target.value, 10) }))} /> </p> }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.18 |
proxy
|
phpinfo
|
Settings