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
/** | |
*Adding the Admin Notice | |
*/function wpb_admin_notice_warn() { | |
echo '<div class="notice notice-warning is-dismissible"> | |
<p>Remember to add internal links to recently published posts!</p> | |
</div>'; | |
} | |
add_action( 'admin_notices', 'wpb_admin_notice_warn' ); |
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
/* | |
* Creating a function to create our CPT | |
*/ | |
function custom_post_type() { | |
// Set UI labels for Custom Post Type |
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
// Custom post-type function | |
function create_posttype() { | |
register_post_type( 'movies', | |
// CPT Options | |
array( |
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
p { | |
font-size: 22px; | |
} |
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
include('create-custom-shortcode.php'); |
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 | |
function download_link(){ | |
return 'Get Best Variation Swatches for WooCommerce <a rel="nofollow" href="https://getwooplugins.com/plugins/woocommerce-variation-swatches/">Download Now!</a>'; | |
} | |
add_shortcode('download', 'download_link'); | |
?> |
NewerOlder