Inventory_Presser_Plugin::mark_vehicles_for_sale_during_insertion( int $post_ID, WP_Post $post, bool $update )

Fires once a vehicle post has been saved.

On This Page


Parameters Parameters

$post_ID

(int) (Required) Post ID.

$post

(WP_Post) (Required) Post object.

$update

(bool) (Required) Whether this is an existing post being updated.


Top ↑

Source Source

File: inventory-presser.php

		 * Adds a link to the settings page near the Activate | Delete links on the
		 * list of plugins on the Plugins page.
		 *
		 * @param  array $links
		 * @return array
		 */
		public function insert_settings_link( $links ) {
			$url     = admin_url(
				sprintf(
					'edit.php?post_type=%s&page=%s',
					INVP::POST_TYPE,
					INVP::OPTION_PAGE
				)
			);
			$links[] = sprintf(
				'<a href="%s">%s</a>',