{"id":34778,"date":"2015-02-26T02:13:13","date_gmt":"2015-02-26T02:13:13","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-job-manager-custom-management-role\/"},"modified":"2015-02-26T02:13:28","modified_gmt":"2015-02-26T02:13:28","slug":"wp-job-manager-custom-management-role","status":"publish","type":"plugin","link":"https:\/\/fuc.wordpress.org\/plugins\/wp-job-manager-custom-management-role\/","author":8798390,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"1.0.1","tested":"4.1.42","requires":"3.8","requires_php":"","requires_plugins":"","header_name":"WP Job Manager - Custom Management Role","header_author":"AndrewRMinion Design","header_description":"","assets_banners_color":"","last_updated":"2015-02-26 02:13:28","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/Pressed-Solutions\/WP-Job-Manager-Custom-Management-Role","header_author_uri":"http:\/\/andrewrminion.com","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3168,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[6306,8109,8107,4534,9023],"plugin_category":[39],"plugin_contributors":[78963],"plugin_business_model":[],"class_list":["post-34778","plugin","type-plugin","status-publish","hentry","plugin_tags-company","plugin_tags-job","plugin_tags-job-board","plugin_tags-job-listing","plugin_tags-jobs","plugin_category-business","plugin_contributors-macbookandrew","plugin_committers-macbookandrew"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-job-manager-custom-management-role.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Typically, only the user who posted a job can manage the applications. This plugin allows any user with the 'edit_others_job_applications' capability to manage applications.<\/p>\n\n<h4>Documentation<\/h4>\n\n<p>Documentation for the core plugin and add-ons can be found <a href=\"https:\/\/wpjobmanager.com\/documentation\/\">on the docs site here<\/a>.<\/p>\n\n<!--section=installation-->\n<h4>Automatic installation<\/h4>\n\n<p>Automatic installation is the easiest option as WordPress handles the file transfers itself and you don't even need to leave your web browser. To do an automatic install, log in to your WordPress admin panel, navigate to the Plugins menu and click Add New.<\/p>\n\n<p>In the search field type \"WP Job Manager - Customized Management Role\" and click Search Plugins. Once you've found the plugin you can view details about it such as the the point release, rating and description. Most importantly of course, you can install it by clicking <em>Install Now<\/em>.<\/p>\n\n<h4>Manual installation<\/h4>\n\n<p>The manual installation method involves downloading the plugin and uploading it to your webserver via your favourite FTP application.<\/p>\n\n<ul>\n<li>Download the plugin file to your computer and unzip it<\/li>\n<li>Using an FTP program, or your hosting control panel, upload the unzipped plugin folder to your WordPress installation's <code>wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin from the Plugins menu within the WordPress admin.<\/li>\n<\/ul>\n\n<h4>Getting started<\/h4>\n\n<p>Once installed, grant your user(s) the <code>edit_others_job_applications<\/code> capability.<\/p>\n\n<ol>\n<li>Using the <a href=\"https:\/\/wordpress.org\/plugins\/members\/\">Members<\/a> plugin, you can create a new role and click a checkbox to grant the capability.<\/li>\n<li>Or if you prefer to do it manually, add this code to your <code>functions.php<\/code> file:\n<code>$user = new WP_User( $user_id );\n$user-&gt;add_cap( 'can_edit_posts' );<\/code><\/li>\n<\/ol>\n\n<p>If you want to restrict your jobmanager user(s) from accessing other areas of the WordPress control panel, add this code to your <code>functions.php<\/code> file (it expects a role named \u201cjobmanager\u201d):\n    `\n\/\/ tweak dashboard for job manager role\n    function remove_admin_menus() {\n        remove_menu_page( 'index.php' );                        \/\/ Dashboard\n        remove_menu_page( 'edit.php' );                         \/\/ Posts\n        remove_menu_page( 'edit-comments.php' );                \/\/ Comments\n        remove_menu_page( 'tools.php' );                        \/\/ Tools\n    }\n    if ( appthemes_check_user_role( 'jobmanager' ) ) { add_action( 'admin_menu', 'remove_admin_menus' ); }<\/p>\n\n<pre><code>\/\/ hide jetpack admin menu item from non-admins\nfunction remove_jetpack() {\n    if( class_exists( 'Jetpack' ) &amp;&amp; !current_user_can( 'manage_options' ) ) {\n        remove_menu_page( 'jetpack' );\n    }\n}\nadd_action( 'admin_init', 'remove_jetpack' );\n\n\/\/ get logged-in user's role\nfunction appthemes_check_user_role( $role, $user_id = null ) {\n\n    if ( is_numeric( $user_id ) )\n    $user = get_userdata( $user_id );\n    else\n        $user = wp_get_current_user();\n\n    if ( empty( $user ) )\n    return false;\n\n    return in_array( $role, (array) $user-&gt;roles );\n}\n`\n<\/code><\/pre>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Update documentation<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Basic plugin<\/li>\n<\/ul>","raw_excerpt":"Allows a user who has the &#039;edit_others_job_applications&#039; capability to edit job applications posted by anyone.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/34778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=34778"}],"author":[{"embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/macbookandrew"}],"wp:attachment":[{"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=34778"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=34778"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=34778"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=34778"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=34778"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/fuc.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=34778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}