Skip to content

Instantly share code, notes, and snippets.

@lloc lloc/functions.md
Last active Aug 29, 2015

Embed
What would you like to do?
Functions, classes and methods
<?php
$str = '';
if ( function_exists ( 'get_the_msls' ) ) {
$str = get_the_msls();
}
<?php
$object = new MslsOutput();
$display = 0;
$exists = false;
foreach ( $object->get( $display, $exists ) as $link ) {
echo $link;
}
<?php
if ( function_exists ( 'the_msls' ) ) {
the_msls();
}
<?php
if ( function_exists ( 'the_msls' ) ) {
$args = array(
'before_item' => '<li>',
'after_item' => '</li>',
'before_output' => '<ul>',
'after_output' => '</ul>',
);
the_msls( $args );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.