daily pastebin goal
37%
SHARE
TWEET

Untitled

a guest Dec 10th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require plugin_dir_path( __FILE__ ) . 'includes/class-network.php';
  2.  
  3. $distro = new Classnetwork();
  4.    
  5. class Classnetwork {
  6.     public function __construct() {
  7.         add_action( 'publish_post', array ($this, 'cdn_capture_data') );
  8.     }
  9.  
  10.     public function cdn_capture_data( $post_id, $post ) {
  11.         print_r ($post);            
  12. }
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top