Skip to content

Instantly share code, notes, and snippets.

@rahularyan
Created October 26, 2017 04:24
Show Gist options
  • Save rahularyan/db699d8b376db458027585ead58ea14a to your computer and use it in GitHub Desktop.
Save rahularyan/db699d8b376db458027585ead58ea14a to your computer and use it in GitHub Desktop.
<?php
// AnsPress form tags field example.
array(
'label' => __( 'Tags', 'anspress-question-answer' ),
'desc' => sprintf(
// Translators: %1$d contain minimum tags required and %2$d contain maximum tags allowed.
__( 'Tagging will helps others to easily find your question. Minimum %1$d and maximum %2$d tags.', 'anspress-question-answer' ),
ap_opt( 'min_tags' ),
ap_opt( 'max_tags' )
),
'type' => 'tags',
'array_max' => ap_opt( 'max_tags' ),
'array_min' => ap_opt( 'min_tags' ),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment