{"id":26793107,"url":"https://github.com/beapi/bea-post-status-admin","last_synced_at":"2025-04-22T15:12:14.710Z","repository":{"id":23006823,"uuid":"26357548","full_name":"BeAPI/bea-post-status-admin","owner":"BeAPI","description":"Handle the post status on the admin","archived":false,"fork":false,"pushed_at":"2023-07-18T07:39:30.000Z","size":27,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-22T15:11:57.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BeAPI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-08T10:46:24.000Z","updated_at":"2023-07-17T08:35:48.000Z","dependencies_parsed_at":"2023-01-13T22:36:16.208Z","dependency_job_id":null,"html_url":"https://github.com/BeAPI/bea-post-status-admin","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-post-status-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-post-status-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-post-status-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BeAPI%2Fbea-post-status-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BeAPI","download_url":"https://codeload.github.com/BeAPI/bea-post-status-admin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250264909,"owners_count":21402004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-29T16:19:07.621Z","updated_at":"2025-04-22T15:12:14.657Z","avatar_url":"https://github.com/BeAPI.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Bea post status Admin\n==\n\nRegistering post_status on WordPress does not display an interface for it.\nWith this plugin you can display the new Post status to the admin interface and interact with it !\n\nUsage \n==\n```\n// Add post status\nadd_action( 'bea/psa/register', 'init_post_status' );\nfunction init_post_status( $class ) {\n\tregister_post_status( 'refused', array(\n\t\t\t'label'                     =\u003e 'Refused',\n\t\t\t'public'                    =\u003e true,\n\t\t\t'exclude_from_search'       =\u003e true,\n\t\t\t'show_in_admin_all_list'    =\u003e true,\n\t\t\t'show_in_admin_status_list' =\u003e true,\n\t\t\t'label_count'               =\u003e _n_noop( 'Refused \u003cspan class=\"count\"\u003e(%s)\u003c/span\u003e', 'Refused \u003cspan class=\"count\"\u003e(%s)\u003c/span\u003e' ),\n\t\t) );\n\n\t\t// Add the post_status admin interface\n\t\t/**\n\t\t\tHere you can add the post status to a post type and choose the submit button text if you choose the \n\t\t\tpost_status on the select.\n\t\t*/\n\t\t$class::register_status( 'refused', array( \"post\" ), 'Refuse the post' );\n\t\n}```\n\nCaution\n==\nIn this plugin version, there is no checks on the user role or capabilities, so this just add the interface and that's it !","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeapi%2Fbea-post-status-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeapi%2Fbea-post-status-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeapi%2Fbea-post-status-admin/lists"}