Translation Function missing text-domain [closed]

From WordPress Codex (Link): <?php $translated_text = esc_attr_x( $text, $context, $domain ) ?> The $domain is optional. That´s the reason it´s a warning. Do you have debug set to true? If you want to fix it you have to add the text-domain. esc_attr_x( ‘Search for:’, ‘label’, ‘TEXT-DOMAIN-FROM-THEME’ ) You can find the text-domain in other … Read more

How to validate field when create post

You can check post data in $_POST array on save_post_{custom_post_type_name} action hook. And if data is not appropriate or according to server side validation and redirect page with custom error args using wp_redirect and , you can grab the errors and display admin notices using admin_notice.