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
Run the following command to clear bundle, generate new bundle. and then run the React Native Application in your Android device or Emulator. | |
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ && react-native run-android\ |
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
#Set cron job from cPanel. Two commands are avaliable to set the cron job: | |
1. /usr/local/bin/php -q /home/USERNAME/public_html/cron.php >/dev/null 2>&1 | |
2. wget http://example.com/cron.php >/dev/null 2>&1 | |
Also, you can generate the command from this website https://crontab-generator.org |
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 Fields Dropdown - WordPress Admin Dashboard | |
By default limit is 30 keys shown in the dropdown. If you want to increase the limit. | |
add_filter( 'postmeta_form_limit', 'meta_limit_increase' ); | |
function meta_limit_increase( $limit ) { | |
return 300; // change it accordingly | |
} | |
Ref: https://developer.wordpress.org/reference/hooks/postmeta_form_limit/ |
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
#React-Native: How to use common functions | |
1. Create a file 'validate.js'. | |
2. Add few function like this | |
export function isEmpty(str) { | |
return (!str || 0 === str.length); | |
} | |
export function validateEmail(email) { |