{"action":"created","issue":{"url":"https://api.github.com/repos/aristath/kirki/issues/1353","repository_url":"https://api.github.com/repos/aristath/kirki","labels_url":"https://api.github.com/repos/aristath/kirki/issues/1353/labels{/name}","comments_url":"https://api.github.com/repos/aristath/kirki/issues/1353/comments","events_url":"https://api.github.com/repos/aristath/kirki/issues/1353/events","html_url":"https://github.com/aristath/kirki/pull/1353","id":233078181,"number":1353,"title":"Support array for element argument","user":{"login":"mintbird","id":695425,"avatar_url":"https://avatars0.githubusercontent.com/u/695425?v=3","gravatar_id":"","url":"https://api.github.com/users/mintbird","html_url":"https://github.com/mintbird","followers_url":"https://api.github.com/users/mintbird/followers","following_url":"https://api.github.com/users/mintbird/following{/other_user}","gists_url":"https://api.github.com/users/mintbird/gists{/gist_id}","starred_url":"https://api.github.com/users/mintbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mintbird/subscriptions","organizations_url":"https://api.github.com/users/mintbird/orgs","repos_url":"https://api.github.com/users/mintbird/repos","events_url":"https://api.github.com/users/mintbird/events{/privacy}","received_events_url":"https://api.github.com/users/mintbird/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-02T05:10:12Z","updated_at":"2017-06-04T19:29:13Z","closed_at":"2017-06-04T19:29:13Z","pull_request":{"url":"https://api.github.com/repos/aristath/kirki/pulls/1353","html_url":"https://github.com/aristath/kirki/pull/1353","diff_url":"https://github.com/aristath/kirki/pull/1353.diff","patch_url":"https://github.com/aristath/kirki/pull/1353.patch"},"body":"The code is ported from https://github.com/aristath/kirki/blob/master/includes/output/class-kirki-output.php#L149\r\n\r\nHere is sample configuration for the issue\r\n\r\n```\r\nKirki::add_field( 'my_config', array(\r\n\t'type'     => 'slider',\r\n\t'settings' => 'my_setting',\r\n\t'label'    => __( 'Border width', 'my_textdomain' ),\r\n\t'section'  => 'my_section',\r\n\t'default'  => 1,\r\n\t'priority' => 1,\r\n\t'choices'  => array(\r\n\t\t'min'  => 0,\r\n\t\t'max'  => 20,\r\n\t\t'step' => 1,\r\n\t),\r\n\t'output' => array(\r\n\t\tarray(\r\n\t\t\t'element' => array( 'h1', 'h2', 'h3' )\r\n\t\t\t'property' => 'border-top-width',\r\n\t\t\t'units'    => 'px',\r\n\t\t),\r\n\t),\r\n) );\r\n```"},"comment":{"url":"https://api.github.com/repos/aristath/kirki/issues/comments/306061509","html_url":"https://github.com/aristath/kirki/pull/1353#issuecomment-306061509","issue_url":"https://api.github.com/repos/aristath/kirki/issues/1353","id":306061509,"user":{"login":"aristath","id":588688,"avatar_url":"https://avatars3.githubusercontent.com/u/588688?v=3","gravatar_id":"","url":"https://api.github.com/users/aristath","html_url":"https://github.com/aristath","followers_url":"https://api.github.com/users/aristath/followers","following_url":"https://api.github.com/users/aristath/following{/other_user}","gists_url":"https://api.github.com/users/aristath/gists{/gist_id}","starred_url":"https://api.github.com/users/aristath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aristath/subscriptions","organizations_url":"https://api.github.com/users/aristath/orgs","repos_url":"https://api.github.com/users/aristath/repos","events_url":"https://api.github.com/users/aristath/events{/privacy}","received_events_url":"https://api.github.com/users/aristath/received_events","type":"User","site_admin":false},"created_at":"2017-06-04T19:29:13Z","updated_at":"2017-06-04T19:29:13Z","body":"Fixed in https://github.com/aristath/kirki/commit/aee44b3a617218344099ba67ef7214e9d48ebb04 where it's done for all elements and not just typography elements 👍 \r\n"}}
{"actor":{"display_login":"aristath"}}