/** * Adds or removes the specified HTML link * * @param string $plugin Path to plugin file. * @param string $html Full HTML for this link. * @param bool $remove Whether to add this HTML/link or match and remove it. */ public function set($plugin, $html, $remove = false) { $basename = plugin_basename($plugin); // Get any current links for this plugin. $cur_links = Tribe__Utils__Array::get($this->meta_links, $basename, array()); $cur_links[] = array('html' => $html, 'remove' => $remove); $this->meta_links = Tribe__Utils__Array::set($this->meta_links, $basename, $cur_links); }
/** * Sets an arg, including one nested a few levels deep * * @param string|array $key To set an arg nested multiple levels deep pass an array * specifying each key in order as a value. * Example: array( 'lvl1', 'lvl2', 'lvl3' ); * @param mixed $value The value. */ protected final function set($key, $value) { $this->args = Tribe__Utils__Array::set($this->args, $key, $value); }