Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author miunosoft

    (@miunosoft)

    You can use the content_top_{page slug}() method.

    
    public function content_top_YOURPAGESLUG( $top_content ){
        return "<h2>Before page title</h2>"
            . $top_content
            . "<h2>Before form</h2>";
    }
    

    Also the method name also serves as a filter hook. So you can do something like

    
    add_filter( 'content_top_YOURPAGESLUG', array( $this, 'getTopContent' ) );
    
    
    public function getTopContent( $top_content ) {
        return "<h2>Before page title</h2>"
            . $top_content
            . "<h2>Before form</h2>";
    }
    

    Replace YOURPAGESLUG with your actual page slug.

    Hope this helps.

    Thread Starter Aldo

    (@ab_lu)

    Awesome!
    Thanks ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How define elements order’ is closed to new replies.