With HTTP everything is visible when traveling on the Internet. By generating an SSL certificate and configuring your webserver you can force browsers to use HTTPS. Here is how to proceed:
# 1. Install letsencrypt
sudo pip install letsencrypt
var finalEnlishToBanglaNumber={'0':'০','1':'১','2':'২','3':'৩','4':'৪','5':'৫','6':'৬','7':'৭','8':'৮','9':'৯'}; | |
String.prototype.getDigitBanglaFromEnglish = function() { | |
var retStr = this; | |
for (var x in finalEnlishToBanglaNumber) { | |
retStr = retStr.replace(new RegExp(x, 'g'), finalEnlishToBanglaNumber[x]); | |
} | |
return retStr; | |
}; | |
<?php | |
/** | |
* Programmatically install and activate wordpress plugins | |
* | |
* Usage: | |
* 1. Edit the $pluginSlugs array at the beginning of this file to include the slugs of all the | |
* plugins you want to install and activate | |
* 2. Upload this file to the wordpress root directory (the same directory that contains the | |
* 'wp-admin' directory). | |
* 3. Navigate to <your-domain-wordpress-root>/install-wp-plugins.php (If wordpress is installed |
{ | |
"themes": [], | |
"plugins": [ | |
"elementor", | |
"happy-elementor-addons", | |
"contact-form-7", | |
"query-monitor", | |
"regenerate-thumbnails", | |
"debug-bar", | |
"debug-bar-console", |
<?php | |
/** | |
* Redirect users to custom URL based on their role after login | |
* | |
* @param string $redirect | |
* @param object $user | |
* @return string | |
*/ | |
function wc_custom_user_redirect( $redirect, $user ) { | |
// Get the first of all the roles assigned to the user |
<?php | |
add_action( 'pre-upload-ui', 'get_the_post_type' ); | |
function get_the_post_type() { | |
$post_type = isset( $_REQUEST['post_type'] ) ? $_REQUEST['post_type'] : 'post'; | |
set_transient( 'attached_post_type', $post_type ); | |
} | |
add_filter( 'intermediate_image_sizes_advanced', 'add_image_size_for_post_type', 10 ); | |
function add_image_size_for_post_type( $sizes ) { |
<?php | |
/** | |
* NOTICE_____________________________________________________________________ | |
* ALWAYS use the Kaiser's version - it's safer. | |
* This forked version is just to catch errors in the case of non-admin users. | |
* --------------------------------------------------------------------------- | |
*/ | |
defined( 'ABSPATH' ) OR exit; | |
/** |
<?php | |
function tl_save_error() { | |
update_option( 'plugin_error', ob_get_contents() ); | |
} | |
add_action( 'activated_plugin', 'tl_save_error' ); | |
/* Then to display the error message: */ |
<?php | |
if ( ! function_exists( 'hippo_plugin_hook_info' ) ): | |
function hippo_plugin_hook_info( $hook_name ) { | |
global $wp_filter; | |
$docs = array(); | |
$template = "\t - %s Priority - %s.\n\tin file %s #%s\n\n"; | |
echo '<pre>'; |