LLMS_Admin_Metabox::__construct()

Constructor


Description Description

Configure the metabox and automatically add required actions


Source Source

File: includes/abstracts/abstract.llms.admin.metabox.php

	public function __construct() {

		// allow child classes to configure variables
		$this->configure();

		// register the metabox
		add_action( 'add_meta_boxes', array( $this, 'register' ) );

		// register save actions for applicable screens (post types)
		foreach ( $this->get_screens() as $screen ) {
			add_action( 'save_post_' . $screen, array( $this, 'save_actions' ), 10, 1 );
		}

		// display errors
		add_action( 'admin_notices', array( $this, 'output_errors' ) );

		// save errors
		add_action( 'shutdown', array( $this, 'save_errors' ) );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.





Permalink: