How to get certain part from widget

You cannot separate the markup from the output in this widget. The links are built from the result of mlp_show_linked_elements(), so you can use that to create the elements with a custom function or a new widget. This will print the links to all connected pages: mlp_show_linked_elements( array( ‘link_text’ => ‘text’, ‘show_current_blog’ => TRUE ) … Read more

Wp Pagenavi how to display all results

I replaced it with: $out .= $instance->get_single( 1, ‘first’, “All”, 100, 1 ); And I changed the get_single function, more exactly I added a parameter, “all”, and this one won’t afect anything else. function get_single( $page, $class, $raw_text, $format=”%PAGE_NUMBER%”, $all = 0 ) { if ( empty( $raw_text ) ) return ”; $text = str_replace( … Read more

Custom Post Types in plugins?

Yes, there are lot of plugins using CPTs as data holders (e.g., Advanced Custom Field). Others, though, carefully use the class WP_List_Table to conform to the default interface (e.g., BackWPup). When registering a post type, we have options to control its visibility and “querybility”: public, show_ui, publicly_queryable and others. This is how ACF registers itself: … Read more

WooCommerce custom payment gateway

Right, so the gist is your code; from your description I thought it was someone else’s code you read for inspiration. Your woostripe.php file, which loads your gateway class, bails out before loading the gateway class: // bail on constructor if gateway class isn’t loaded! if (!class_exists(‘WooStripe_Gateway’)) return; // … // why are you attempting … Read more