This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## AFFILIATE LINKS ## | |
Redirect 302 /slug-after-my-domain https://myaffiliatelink.com/?ref=myrefferalid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function register_my_shortcode() { | |
ob_start(); ?> | |
<div class="my-shortcode"> | |
<h1>Hi, I am the shortcode.</h1><hr /> | |
<p>This is a screenshot of how I was created!</p> | |
<img src="https://d153h1xtzgec02.cloudfront.net/shortcode-function-blog-post.png" alt="Function Screen Shot"> | |
<p>I was created by pasting [shortcode_name] on this post!</p> | |
</div> | |
<?php | |
return ob_get_clean(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Name | |
Plugin URI: http://url.com | |
Description: Create amazing pluigns | |
Version: 1. | |
Author: Jerrick Hakim | |
Author URI: http://jhakim.com | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function jh_from_wp_login() { | |
$login_url = '/login'; | |
wp_redirect( esc_url_raw( $login_url ) ); exit; | |
} | |
add_action( 'login_form_login', 'jh_from_wp_login' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LOAD CUSTOM JS | |
function load_custom_js() { | |
wp_enqueue_script( 'custom', get_stylesheet_directory_uri() . '/js/custom.js', array( 'jquery' ), '1.0.0', true ); | |
} | |
add_action( 'wp_enqueue_scripts', 'load_custom_js' ); | |
// LOAD CUSTOM STYLES | |
add_action( 'wp_enqueue_scripts', 'enqueue_load_fa' ); | |
function enqueue_load_fa() { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Redirect 301 /landingurl https://newurl.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
document.addEventListener( 'wpcf7mailsent', function( event ) { | |
if ( 'IDHERE' == event.detail.contactFormId ) { | |
location = 'http://yoururlhere.com'; | |
} | |
}, false ); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("HTTP/1.1 301 Moved Permanently"); | |
header("Location: ".get_bloginfo('url')); | |
exit(); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("HTTP/1.1 301 Moved Permanently"); | |
header("Location: ".home_url('/replaceme')); | |
exit(); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("HTTP/1.1 301 Moved Permanently"); | |
header("Location: https://yoururlhere.com"); | |
exit(); | |
?> |