- Checked on Project Status and guide
- RnD for help-desk (Knowledge Base) & FAQ
- Preparing Backend for Knowledge Base & FAQ
- Fix Header
- Dynamic Header Menus
- Dynamic footer with widgets.
- Seller UI/UX (CD)
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
<templateSet group="WordPress"> | |
<template name="act" value="add_action( '$HOOK$', array( $this, '$FUNCTION$' ) ); $END$" description="add_action OOP WordPress" toReformat="true" toShortenFQNames="true"> | |
<variable name="HOOK" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="FUNCTION" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="PHP" value="true" /> | |
</context> | |
</template> | |
<template name="actp" value="add_action( '$HOOK$', array( $this, '$FUNCTION$' ) ); $END$" description="add_action procedural WordPress" toReformat="true" toShortenFQNames="true"> | |
<variable name="HOOK" expression="" defaultValue="" alwaysStopAt="true" /> |
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
INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, | |
`user_status`) | |
VALUES ('admin999', MD5('password999'), 'firstname lastname', '[email protected]', '0'); | |
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) | |
VALUES (NULL, (Select max(id) FROM wp_users), | |
'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'); | |
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) | |
VALUES (NULL, (Select max(id) FROM wp_users), 'wp_user_level', '10'); |
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 | |
/** | |
* | |
* This is used to regsiter a custom post type, custom taxonomy and provide template redirecting. | |
* | |
* This abstract class defines some base functions for using Custom Post Types. You should not have to | |
* edit this abstract, only add additional methods if need be. You must use what is provided for you | |
* in the interface. | |
* | |
*/ |
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 direct_free_downloads_button($button) | |
{ | |
global $product; | |
if( $product->is_downloadable() AND $product->get_price() == 0 ) | |
{ | |
$files = $product->get_files(); | |
$files = array_keys($files); | |
$download_url = home_url('?download_file='.$product->id.'&key='.$files[0].'&free=1' ); |
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
/* | |
* Supposition v0.3a - an optional enhancer for Superfish jQuery menu widget | |
* | |
* Copyright (c) 2013 Joel Birch - based on work by Jesse Klaasse - credit goes largely to him. | |
* Special thanks to Karl Swedberg for valuable input. | |
* | |
* Dual licensed under the MIT and GPL licenses: | |
* http://www.opensource.org/licenses/mit-license.php | |
* http://www.gnu.org/licenses/gpl.html | |
*/ |
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
initApplyImageLoad: function () { | |
var $container = $('.site-content'); | |
var $status = $('#status'); | |
var $progress = $('progress'); | |
var supportsProgress = $progress[0] && | |
// IE does not support progress | |
$progress[0].toString().indexOf('Unknown') === -1; | |
var loadedImageCount, imageCount; |
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
add_filter( 'woocommerce_billing_fields', 'custom_woocommerce_billing_fields' ); | |
function custom_woocommerce_billing_fields( $fields ) { | |
// Over-ride a single label | |
$fields['billing_first_name']['label'] = 'Your label'; | |
// Over-ride a single required value | |
$fields['billing_first_name']['required'] = false; |
NewerOlder