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
| Seller Account Details: | |
| [email protected] | |
| Apnapakistan1 | |
| Main Admin Details: | |
| admin | |
| Apnapakistan1 |
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
| <!-- <textarea name="general_info" class="form-control rounded-0" id="exampleFormControlTextarea2" rows="3"><?php echo get_user_meta($current_user->ID,'general_info', true);?></textarea> --> | |
| <?php | |
| $content = get_user_meta($current_user->ID,'general_info', true); | |
| $editor_id = 'general_info';//here editor is the name field of textarea | |
| wp_editor( $content, $editor_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
| http://indiatribune.com/ | |
| http://www.spacesharings.com/ | |
| http://www.serenitea.com.au/ | |
| http://www.egates.com.au/ | |
| http://www.lvlightings.com/ | |
| http://isavedasoul.com/ |
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
| <?php | |
| $awesome_page_id = get_option("awesome_page_id"); | |
| if (!$awesome_page_id) { | |
| //create a new page and automatically assign the page template | |
| $post1 = array( | |
| 'post_title' => 'Awesome Page!', | |
| 'post_content' => "", | |
| 'post_status' => "publish", | |
| 'post_type' => 'page', | |
| ); |
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
| <?php | |
| /** | |
| * Register meta box(es). | |
| */ | |
| add_action( 'add_meta_boxes', 'city_register_meta_boxes' ); | |
| function city_register_meta_boxes() { | |
| $post_type = get_post_type(); | |
| add_meta_box( 'city', 'City', 'city_display_callback', $post_type, "side", "low", 'default'); | |
| } | |
| function city_display_callback($post){ |
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
| <?php | |
| // =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Woocommerce Customization-=-=-=-=-=-=-=-=-=-=-= | |
| // @customization files: followed by .php | |
| # wc>loop>rating | |
| # wc>loop>price | |
| # wc>loop>add-to-cart | |
| # wc>content-product | |
| # wc>content-single-product | |
| # wc>archive-product | |
| # wc>single-product>add-to-cart>variation-add-to-cart-button |
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
| <?php | |
| $current_user = wp_get_current_user(); | |
| $img = get_user_meta($current_user->ID,'picture', true); | |
| $certificates = get_user_meta( $current_user->ID,'certificates', false); | |
| $cityies = get_user_meta($current_user->ID,'city', false); | |
| $city_array = $cityies[0]; | |
| $suburbs = get_user_meta($current_user->ID,'suburb', true); | |
| $suburb_array = explode(',',$suburbs); | |
| /*Required for file uploading*/ |
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
| <?php | |
| if(isset($_POST['submit'])){ | |
| $fname = $_POST['fname']; | |
| $lname= $_POST['lname']; | |
| $phonenumber= $_POST['phonenumber']; | |
| $email= $_POST['email']; | |
| $enquiry=$_POST['enquiry']; | |
| $fullname= $fname. ' '.$lname; | |
| function my_custom_email_content_type( $content_type ) { | |
| return 'text/html'; |
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
| $(document).keydown(function(e) { | |
| return 123 == e.keyCode ? !1 : e.ctrlKey && e.shiftKey && 73 == e.keyCode ? !1 : void 0 | |
| }), document.addEventListener("contextmenu", function(e) { | |
| e.preventDefault() | |
| }), document.onkeydown = function(e) { | |
| return !e.ctrlKey || 67 !== e.keyCode && 86 !== e.keyCode && 85 !== e.keyCode && 117 !== e.keyCode ? !0 : !1 | |
| }, $(document).keypress("u", function(e) { | |
| return e.ctrlKey ? !1 : !0 | |
| }); |
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
| <?php | |
| // ajax remove attachement | |
| add_action( 'wp_ajax_delete_attachment', 'delete_attachment' ); | |
| function delete_attachment( $post ) { | |
| $attached_id = $_POST['att_ID']; | |
| $user_id = get_current_user_id(); | |
| $certificates = get_user_meta( $user_id,'certificates', false); | |
| $index_value = array_search($attached_id, $certificates[0]); | |
| $msg = 'Attachment has been deleted successfully!'; | |
| if( wp_delete_attachment( $_POST['att_ID'], true )) { |