Support » Plugin: Page Links To » What is the callback?

  • Resolved captaincainer

    (@captaincainer)


    I’m trying to move the metabox to the sidebar but am unable to get the callback function name.

    add_meta_box( 'page-links-to', _x( 'Page Links To', 'Meta box title', 'page-links-to' ), array( $this, 'meta_box' ), $page, 'advanced', 'low' );

    Could you help please.

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

    (@markjaquith)

    The callback is: [CWS_PageLinksTo::get_instance(), 'meta_box']

    Plugin Author Mark Jaquith

    (@markjaquith)

    (The $this only works from within my plugin class, but that `CWS_PageLinksTo::get_instance() call will give you access to the singleton instance of the plugin object).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘What is the callback?’ is closed to new replies.