Skip to content

Instantly share code, notes, and snippets.

@lloc
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lloc/42461e05324e9bf1924b to your computer and use it in GitHub Desktop.
Save lloc/42461e05324e9bf1924b to your computer and use it in GitHub Desktop.
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