(0|\+98)?([ ]|,|-|[()]){0,2}9[1|2|3|4]([ ]|,|-|[()]){0,2}(?:[0-9]([ ]|,|-|[()]){0,2}){8}
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
DELETE FROM wp_usermeta | |
WHERE NOT EXISTS ( | |
SELECT * FROM wp_users | |
WHERE wp_usermeta.user_id = wp_users.ID | |
) |
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
<?php | |
/** | |
* Add custom meta to order | |
*/ | |
function plugin_republic_checkout_create_order_line_item( $item, $cart_item_key, $values, $order ) { | |
if( isset( $values['pr_field'] ) ) { | |
$item->add_meta_data( | |
__( 'Your name', 'plugin-republic' ), | |
$values['pr_field'], | |
true |
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
<html> | |
<head></head> | |
<body> | |
<p name="codepenName" id="codepenID" class="codepenClass">Hello World</p> | |
<script> | |
//way1 | |
/* | |
var x = window.document.getElementById('codepenID') |
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
<div class="form-file"> | |
<input type="file" class="form-file-input" onchange="changeFile(this.files[0].name, 'form-file-personal-text')" id="customFile" name="personal" required/> | |
<label class="form-file-label" for="customFile"> | |
<span class="form-file-text" id="form-file-personal-text">Personal Image ...</span> | |
<span class="form-file-button">Select</span> | |
</label> | |
</div> | |
<script> | |
function changeFile(filename, id) |
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
<?php | |
//in Model.php | |
public function contributes() | |
{ | |
return $this->hasmany('\App\ExamUserSelect', 'exam_id'); | |
} | |
/* in controller | |
* grouped by group_id |
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
<b-nav-item-dropdown v-b-hover="onOverService" ref="showServices" text="services"> | |
<b-dropdown-item to="/">one</b-dropdown-item> | |
<b-dropdown-item to="/">two</b-dropdown-item> | |
</b-nav-item-dropdown> | |
<!-- method --> | |
onOverService(isHovered) | |
{ | |
if(isHovered) | |
this.$refs.showService.visible = true |
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
woo_wallet()->wallet->credit($user_id, $amount, $description); | |
woo_wallet()->wallet->debit($user_id, $amount, $description); |