Using get_option() for check box field

This may not exactly answer the question, but let’s see the issues with your code: If you want to save the data in the same format as the default value ($fields_default), then: Start your foreach like so: foreach ( $orderdescider as $i => $item ). Then inside that foreach, $id and $checkbox should always be … Read more

show payment receipt in woocommerce thankyou page with custom payment gateway?

You can try and use the WC session: Documentation URL: https://docs.woocommerce.com/wc-apidocs/class-WC_Session.html StackOverflow discussion. https://stackoverflow.com/questions/27199656/how-to-use-session-in-woocommerce-pages-like-we-use-normal-php-session And once you get to the Thank you page you’ll destroy it. Haven’t tried it yet by coding it but that should work.

How to customize posts in WordPress by using HTML and CSS?

the first thing you need to do is implementing the html template you desire to something that called wordpress template hierarchy is good to start with blank wordpress theme like underscores.me, so you can freely custom your own template so, after your files is ready, you can learn about wordpress theme customizer im giving you … Read more

Does anyone recognize shortcode ig_special_heading?

I think the plugin you are looking for is https://wordpress.org/plugins/ig-shortcodes/. Apparently it has shortcodes that start with ig_ and provides them for things like… Accordion Buttons Badges Notice box Columns Clearfix Divider Google maps Tabs Toggle

Is my WP site being hacked?

My process for cleaning a hacked site includes changing all credentials (user/pass) on hosting, FTP, WP (don’t use an admin-level user called ‘admin’) updating everything- from the repository – WP, themes, plugins. Remove old/unused plugins and themes use FTP of file manager to check every folder for files that look out of place (look at … Read more

Customize comment notification e-mails with HTML

I found out it my self. we should add the following code to the Functions.php ti be able to sent Email via HTML codes: <?php function wpse27856_set_content_type(){ return “text/html”; } add_filter( ‘wp_mail_content_type’,’wpse27856_set_content_type’ ); ?> and then for customize the email, we should do like bellow to use HTML code in it: <?php function wpd_comment_notification_text( $notify_message, … Read more

list / show comments of post author in special page

I found out it my self: <?php $post_ids = get_posts(array( ‘fields’ => ‘ids’, // Only get post IDs ‘posts_per_page’ => -1, ‘author’ => get_current_user_id(), ‘post_type’ => ‘post’, ‘category’ => 0, ‘orderby’ => ‘date’, ‘order’ => ‘DESC’, )); foreach($post_ids as $post_id) : $argss = array( ‘post_id’ => $post_id, ‘status’ => ‘approve’, ‘author__not_in’ => get_current_user_id(), ); $comments … Read more