Skip to content
Snippets Groups Projects
Select Git revision
  • 60b23370aec9c77d46c5bb9ccc14ca6f82049321
  • master default protected
  • feat/npm-publish
  • feat/demo-deploy
  • change-demo-deploy
  • remove-smoke
  • feat/acceptance-tests
  • feature/deploy-composer.json
  • feature/mysql-bin-logs
  • skip-codecept-for-libs
  • include-composer-json
  • exclude-wp-assets
  • update_codecept_image
  • fix/silenced-copy
  • remove-free-translations
  • codeception-with-optional-step
  • improve-parallelization
  • linter-exit
  • change-images
  • fix/linter
  • globally-raise-mem-limit
  • no-symlink2
22 results

integration.yml

Blame
  • NoOnceField.php 435 B
    <?php
    
    namespace WPDesk\Forms\Field;
    
    use WPDesk\Forms\Validator;
    use WPDesk\Forms\Validator\NonceValidator;
    
    class NoOnceField extends BasicField {
    
    	public function __construct( string $action_name ) {
    		$this->meta['action'] = $action_name;
    	}
    
    	public function get_validator(): Validator {
    		return new NonceValidator( $this->get_meta_value( 'action' ) );
    	}
    
    	public function get_template_name(): string {
    		return 'noonce';
    	}
    }