posts_in_page.php

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
class ICAddPostsToPage {
public function __construct( ) {
add_shortcode( 'ic_add_posts', array( &$this, 'posts_in_page' ) );
add_shortcode( 'ic_add_post', array( &$this, 'post_in_page' ) );
add_action( 'admin_menu', array( &$this, 'plugin_page_init' ) );
add_filter( 'plugin_action_links_'. plugin_basename( __FILE__ ), array( &$this, 'plugin_action_links' ), 10, 4 );
load_plugin_textdomain( 'posts-in-page', false, dirname( plugin_basename( __FILE__ ) ). '/languages' );
}
...