This file contains hidden or 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
If you’ve made some commits in the detached head then if you need those commits on your master. For that, all you need is to create a new branch and merge it to master and then delete the branch. For that you can do: | |
git branch temp | |
Now checkout to master | |
git checkout master | |
Merge the branch |
This file contains hidden or 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_menu_page( 'PDF TO WP FORM CONVERTER', 'PDF TO WP FORM CONVERTER', 'manage_options', 'pthfc-converter', 'pthfc_main_description_fucntion' ); | |
add_submenu_page("pthfc-converter", "Add Form", "Add Form", 'manage_options', "ptwc-add-form", "pthfc_add_form_function"); | |
Change To : | |
add_menu_page( $this->plugin_name, 'PDF TO WP FORM CONVERTER', 'manage_options', 'pthfc-converter', array($this,'pthfc_main_description_fucntion') ); | |
add_submenu_page("pthfc-converter", "Add Form", "Add Form", 'manage_options', "ptwc-add-form", array($this,'pthfc_add_form_function')); | |
You can follow this blog: |
This file contains hidden or 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
$upload = wp_upload_dir(); | |
$upload_dir = $upload['basedir']; | |
$upload_dir = $upload_dir . '/mypluginfiles'; | |
if (! is_dir($upload_dir)) { | |
mkdir( $upload_dir, 0700 ); | |
} |
This file contains hidden or 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
<ul> | |
<?php | |
$get_parent_cats = array( | |
'parent' => '0' //get top level categories only | |
); | |
$all_categories = get_categories( $get_parent_cats );//get parent categories | |
foreach( $all_categories as $single_category ){ | |
//for each category, get the ID |
This file contains hidden or 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
Why when I submit a form in wordpress it loads a 404 page though URL is correct | |
if You use any email field like below | |
<input type="email" name="email"> | |
Don't use like this change the name like name="test-email" | |
Then you are able to submit form |
This file contains hidden or 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
This is what worked for me Hopefully no one else will burn oil to figure this out like i did. | |
Here is my sendmail.ini | |
[sendmail] | |
smtp_server=smtp.gmail.com | |
smtp_port=25 | |
error_logfile=error.log | |
debug_logfile=debug.log |
This file contains hidden or 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_product_add_to_cart_text', 'custom_loop_add_to_cart_button', 20, 2 ); | |
function custom_loop_add_to_cart_button( $button_text, $product ) { | |
// HERE define your specific product IDs in this array | |
$specific_ids = array(37, 40, 53); | |
if( in_array($product->get_id(), $specific_ids) ) { | |
$button_text = __("add to cart", "woocommerce"); | |
} else { | |
$button_text = __('+', 'woocommerce'); | |
} |
This file contains hidden or 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
<img | |
src="<?php the_sub_field('slider_image_mobile'); ?>" | |
srcset=" | |
<?php the_sub_field('slider_image'); ?> 1280w, | |
<?php the_sub_field('slider_image_tab'); ?> 900w, | |
<?php the_sub_field('slider_image_mobile'); ?> 600w, | |
<?php the_sub_field('slider_image_mobile'); ?> 360w, " | |
sizes="100%" | |
alt="slider" | |
/> |
This file contains hidden or 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
64 bit 10 may 2020 | |
https://software-download.microsoft.com/sg/Win10_2004_English_x64.iso?t=f612e34d-88e7-4025-96a0-dca008b4887e&e=1600813776&h=a112971e6b46e5085f216c9c3f01142f | |
32 bit 10 may 2020 | |
https://software-download.microsoft.com/sg/Win10_2004_English_x32.iso?t=f612e34d-88e7-4025-96a0-dca008b4887e&e=1600813776&h=bf2cd642c96b2b175fbb6d1b650c2cfc |
This file contains hidden or 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
https://colorlib.com/wp/responsive-html-email-templates/ | |
https://colorlib.com/etc/email-template/11/index.html | |
https://github.com/leemunroe/responsive-html-email-template |
OlderNewer