Noptin_Inpost::__construct()
Class Constructor.
Contents
Source Source
File: includes/class-noptin-inpost.php
public function __construct() { // Prepend/Apend inpost forms to the post content. add_filter( 'the_content', array( $this, 'append_inpost' ) ); // Register shortcode. add_shortcode( 'noptin-form', array( $this, 'do_shortcode' ) ); // Hide block content. add_filter( 'pre_render_block', array( $this, 'maybe_hide_block' ), 10, 2 ); }
Expand full source code Collapse full source code View on GitHub