WordPress.org

Ready to get started?Download WordPress

Forums

Edit Flow
[resolved] Rename 'Calendar' to 'Editorial Calendar' under Dashboard (2 posts)

  1. Jaydubs210
    Member
    Posted 2 years ago #

    I would like to suggest changing the name 'Calendar' to 'Editorial Calendar' under the dashboard menu. This will help clarify what calendar the admin is looking at versus other calendar plugins that are for events for example.

    Modify line 138 in calendar.php to:
    add_submenu_page('index.php', __('Editorial Calendar', 'edit-flow'), __('Editorial Calendar', 'edit-flow'), apply_filters( 'ef_view_calendar_cap', 'ef_view_calendar' ), $this->module->slug, array( &$this, 'view_calendar' ) );
    `

    http://wordpress.org/extend/plugins/edit-flow/

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 2 years ago #

    We've named it "Calendar" to keep from naming everything "Editorial X", but you should be able to change it in your install with a bit of code:

    add_action( 'admin_menu', 'efx_rename_calendar', 100 );
    function efx_rename_calendar() {
    	global $edit_flow;
    	remove_submenu_page( 'index.php', 'calendar' );
    	add_submenu_page( 'index.php', __('Editorial Calendar', 'edit-flow'), __('Editorial Calendar', 'edit-flow'), apply_filters( 'ef_view_calendar_cap', 'ef_view_calendar' ), 'calendar', array( $edit_flow->calendar, 'view_calendar' ) );
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic