function ccgn_is_post_edit() { $action_variables = bp_action_variables(); // var_dump($action_variables); if (ccgn_is_component() && !empty($action_variables) && $action_variables[0] == 'edit') { return true; } return false; }
/** * Add our templates to BuddyPress' template stack. * * @since 1.0.0 */ public function add_template_stack($templates) { // if we're on a page of our plugin and the theme is not BP Default, then we // add our path to the template path array if (ccgn_is_component()) { $templates[] = trailingslashit($this->get_template_directory()); } return $templates; }