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 | |
/** | |
* Adds a link to the Primary Menu based on the | |
* user's logged in status. This is to be placed | |
* in your theme's functions.php file or in your | |
* own plugin file. | |
* | |
* This example works for the WordPress Twenty- | |
* Twelve theme. |
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 | |
/** | |
* Creates a shortcode that links to other | |
* content on your site. | |
*/ | |
function my_permalink_shortcode($atts) { | |
// Check that $id exists. | |
$id = intval($atts['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
Suspendisse dapibus varius adipiscing. Ut at sem sed leo molestie | |
vehicula et eu enim. Vestibulum augue nibh, fermentum sit amet lobortis | |
in, <a href="http://www.mysite.com/blog/post-name">vehicula</a> in mi. | |
Mauris rutrum, eros vitae facilisis ultricies, sapien mauris bibendum | |
libero, vitae molestie elit risus ac orci. |
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
Suspendisse dapibus varius adipiscing. Ut at sem sed leo molestie | |
vehicula et eu enim. Vestibulum augue nibh, fermentum sit amet lobortis | |
in, <a href="[pl id='123']">vehicula</a> in mi. | |
Mauris rutrum, eros vitae facilisis ultricies, sapien mauris bibendum | |
libero, vitae molestie elit risus ac orci. |
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
Suspendisse dapibus varius adipiscing. Ut at sem sed leo molestie | |
vehicula et eu enim. Vestibulum augue nibh, fermentum sit amet lobortis | |
in, [pl id='123' link='1'] in mi. | |
Mauris rutrum, eros vitae facilisis ultricies, sapien mauris bibendum | |
libero, vitae molestie elit risus ac orci. |
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
Suspendisse dapibus varius adipiscing. Ut at sem sed leo molestie | |
vehicula et eu enim. Vestibulum augue nibh, fermentum sit amet lobortis | |
in, [pl id='123' link='1' title='link to me'] in mi. | |
Mauris rutrum, eros vitae facilisis ultricies, sapien mauris bibendum | |
libero, vitae molestie elit risus ac orci. |
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
EXAMPLE: | |
[pl id='33'] | |
RETURNS: | |
http://wwww.mysite.com/hello-world | |
----------------------------------------------------------------- | |
EXAMPLE: | |
<a href="[pl id='33']">read me</a> |
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 | |
$search = $api->searchRequest(); | |
$search->addFilter('ANY LIKE shoes'); | |
$products = $search->execute(); | |
$networks = $search->getNetworks(); | |
print_r($networks); |
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 | |
$search = $api->searchRequest(); | |
$search->addFilter('ANY LIKE shoes'); | |
$products = $search->execute(); | |
$merchants = $search->getMerchants(); | |
print_r($merchants); |
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 | |
$search = $api->searchRequest(); | |
$search->addFilter('ANY LIKE shoes'); | |
$search->setPriceGroups(3); | |
$products = $search->execute(); | |
print_r( $search->getPriceGroups() ); |
OlderNewer