This file contains hidden or 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 | |
function ibenic_buddypress_tab() { | |
global $bp; | |
bp_core_new_nav_item( array( | |
'name' => __( 'My recent Posts', 'ibenic' ), | |
'slug' => 'recent-posts', | |
'position' => 100, | |
'screen_function' => 'ibenic_budypress_recent_posts', |
This file contains hidden or 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 | |
$customWPMenu = new WordPressMenu( array( | |
'slug' => 'wpmenu', | |
'title' => 'WP Menu', | |
'desc' => 'Settings for theme custom WordPress Menu', | |
'icon' => 'dashicons-welcome-widgets-menus', | |
'position' => 99, | |
)); |
This file contains hidden or 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 | |
// Action Hook to add column value for posts | |
add_action( 'manage_posts_custom_column' , 'your_function', 10, 2 ); |
This file contains hidden or 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 | |
function my_share_render_in_content( $content ) { | |
ob_start(); | |
?> | |
<ul id="my_share" class="my_share"> | |
<li> | |
<a href="<?php the_permalink();?>?my_share=facebook">Facebook</a> | |
</li> | |
<li> |
This file contains hidden or 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 | |
function ibenic_custom_menu( $menu_item ) { | |
// If we are in the admin area, skip this function | |
if ( is_admin() ) { | |
return $menu_item; | |
} | |
// If this isn't a Sample Page menu item, skip this function | |
if ( $menu_item->title != "Sample Page" ) { |
This file contains hidden or 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 | |
$remote_request = new WordPressRemoteJSON( 'https://leanpub.com/wpb3/coupons.json', array( 'body' => array("coupon_code" => "coupon-code-123456" ) ), "post" ); | |
$remote_request->run(); //False |
This file contains hidden or 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 | |
function ibenic_email_template_settings() { | |
// Section | |
add_settings_section( | |
'email_templates_section', | |
'Dynamic Email Templates', | |
'ibenic_email_templates_section', | |
'email-templates' | |
); |
This file contains hidden or 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 | |
abstract class WordPress_Extendable_Form { | |
/** | |
* Array of errors | |
* @var array | |
*/ | |
protected $errors = array(); |
This file contains hidden or 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
.sortable_wordpress_gallery li.attachment { | |
width: 141px; | |
height: 141px; | |
} | |
.sortable_wordpress_gallery { | |
display: block; | |
} | |
.sortable_wordpress_gallery:after { | |
display: table; | |
content: ''; |
This file contains hidden or 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 | |
class WordPress_Custom_Status { | |
/** | |
* Post Types for this status | |
* @var array | |
*/ | |
protected $post_type = array(); |