__( 'Ads.txt saved', 'ads-txt' ), 'error_message' => __( 'Your Ads.txt contains the following issues:', 'ads-txt' ), 'unknown_error' => __( 'An unknown error occurred.', 'ads-txt' ), ); wp_localize_script( 'adstxt', 'adstxt', $strings ); } add_action( 'admin_enqueue_scripts', __NAMESPACE__ . '\admin_enqueue_scripts' ); /** * Output some CSS directly in the head of the document. * * Should there ever be more than ~25 lines of CSS, this should become a separate file. * * @return void */ function admin_head_css() { ?> post_content ) ? $post->post_content : ''; $errors = get_post_meta( $post->ID, 'adstxt_errors', true ); } ?>