Skip to content

Instantly share code, notes, and snippets.

View themeix's full-sized avatar
🏆
No #1 Ghost, Jekyll Marketplace

Themeix LLC themeix

🏆
No #1 Ghost, Jekyll Marketplace
View GitHub Profile
define ( 'WPLANG', 'de_DE');
<form action="https://formspree.io/[email protected]" method="POST">
<input type="text" name="your-name" placeholder="Your Name">
<input type="email" name="_replyto" placeholder="Email" class="float-right">
<textarea name='message' placeholder="Message"></textarea>
<button type="submit" class="btn-c buttonfx curtainup">Send Message</button>
<input class='btn-c buttonfx curtainup' type="submit" value="Send">
</form>
@themeix
themeix / http_headers_security.htaccess
Created November 10, 2021 04:36 — forked from dkvadratu/http_headers_security.htaccess
{HTACCESS} HTTP headers for security in .htaccess file
# Check your website headers here: https://www.serpworx.com/check-security-headers/ or https://gf.dev/
# This configuration works for WP, WC on LiteSpeed server. Be careful. Test site after installing. All lines are explained are in serpworx.com tester.
# More docs:
# https://www.netsparker.com/whitepaper-http-security-headers/#XFrameOptionsHTTPHeader
# https://owasp.org/www-project-secure-headers/
# https://www.keycdn.com/blog/http-security-headers
# WordPress plugin for Headers setup https://wordpress.org/plugins/http-headers/
# Main security options in .htaccess file:
@themeix
themeix / learndash-graphql.php
Created June 24, 2023 10:38 — forked from izzygld/learndash-graphql.php
Replace REST API with @wpgraphql with @apollographql client.
<?php
add_filter( 'register_post_type_args', function( $args, $post_type ) {
if ( 'sfwd-courses' === $post_type ) {
$args['show_in_graphql'] = true;
$args['graphql_single_name'] = 'course';
$args['graphql_plural_name'] = 'courses';
}