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 | |
/** | |
* | |
* Search form snippets for wordpress | |
* Article : https://raisachin.wordpress.com/2018/02/20/customize-the-search-form-as-you-want-in-wordpress/ | |
* Article : https://raisachin.com.np/customize-search-form-want-wordpress/ | |
* | |
*/ | |
?> |
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 | |
//https://raisachin.wordpress.com/2018/01/30/how-to-turn-on-error-reporting-in-wordpress/ | |
define('WP_DEBUG', true); // update false to true | |
define('WP_DEBUG_LOG', true); | |
define('WP_DEBUG_DISPLAY', false); | |
@ini_set('display_errors', 0); |
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
vendor/ | |
node_modules/ | |
npm-debug.log | |
# Laravel 4 specific | |
bootstrap/compiled.php | |
app/storage/ | |
# Laravel 5 & Lumen specific | |
public/storage |
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
*.log | |
wp-config.php | |
wp-content/advanced-cache.php | |
wp-content/backup-db/ | |
wp-content/backups/ | |
wp-content/blogs.dir/ | |
wp-content/cache/ | |
wp-content/upgrade/ | |
wp-content/uploads/ | |
wp-content/mu-plugins/ |
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
// Query arguments | |
$popular_args = array( | |
'posts_per_page' => $size, | |
'meta_key' => '_base_popular_posts_count', | |
'orderby' => 'meta_value_num' | |
'year' => date('Y'), // Current year | |
'monthnum' => date('n') // Current month | |
); |
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 | |
/** | |
* | |
* Himalayan Bank Payment Gateway | |
* Prod endpoint : https://hblpgw.2c2p.com/HBLPGW/Payment/Payment/Payment | |
* Dev endpoint : https://hbl.pgw/payment | |
* | |
* HTTP status code : | |
* | |
* 00 Approved ,transaction is successfully paid. |
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 | |
/** | |
* Content from http://en.wikipedia.org/wiki/List_of_HTTP_status_codes | |
**/ | |
return array( | |
100 => 'Continue', | |
101 => 'Switching Protocols', | |
102 => 'Processing', // WebDAV; RFC 2518 | |
200 => 'OK', |
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
// sending to sender-client only | |
socket.emit('message', "this is a test"); | |
// sending to all clients, include sender | |
io.emit('message', "this is a test"); | |
// sending to all clients except sender | |
socket.broadcast.emit('message', "this is a test"); | |
// sending to all clients in 'game' room(channel) except sender |
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
/** | |
* Project: Easy Form Helper | |
* Description: Simple Form Helper to get form data | |
* Author: Raisachin, https://raisachin.com.np | |
* Licence: MIT License http://opensource.org/licenses/mit-license.php | |
* Version: 1.0.0 | |
* | |
* Usage: | |
* @type url/data : url = get url & data = object of form data | |
* @strict : if true , filter empty form data & if false will get all the form data |
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 | |
if (! function_exists('change_db_storage')) : | |
/** | |
* Changing all tables database storage | |
* i.e InnoDB/MyISAM | |
*/ | |
function change_db_storage( $storage = 'InnoDB' ) { |
OlderNewer