{"id":18358862,"url":"https://github.com/uppercod/wp-uppercod-data","last_synced_at":"2025-04-10T03:04:08.912Z","repository":{"id":113251549,"uuid":"460942712","full_name":"UpperCod/wp-uppercod-data","owner":"UpperCod","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-25T18:23:02.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T18:36:40.335Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UpperCod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-18T17:20:55.000Z","updated_at":"2022-03-25T17:04:08.000Z","dependencies_parsed_at":"2023-10-30T00:00:06.832Z","dependency_job_id":null,"html_url":"https://github.com/UpperCod/wp-uppercod-data","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fwp-uppercod-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fwp-uppercod-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fwp-uppercod-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UpperCod%2Fwp-uppercod-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UpperCod","download_url":"https://codeload.github.com/UpperCod/wp-uppercod-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248148224,"owners_count":21055547,"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":"2024-11-05T22:19:45.409Z","updated_at":"2025-04-10T03:04:08.893Z","avatar_url":"https://github.com/UpperCod.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UpperCodShortCodeData\n\nThis plugin allows access through shortcode to information of the shared concurrent object\nfor wordpress, by default $post.\n\n## Installation\n\nclick on the `Code` button and then click on `Download ZIP` and install as a plugin in wordpress.\n\n## Syntax\n\n```\n[$ \u003cproperty\u003e [...filters] ]\n```\n\n1. `\u003cproperty\u003e`: Property to access of the current object.\n2. `[...filters]`: Optional filters to apply to the data selected by `\u003cproperty\u003e`.\n\n## Example\n\nget page title\n\n```txt\n[$ title]\n```\n\nget page date\n\n```txt\n[$ date]\n```\n\nget page date and apply filter\n\n```txt\n[$ date date=\"Y\"]\n```\n\n## Default filters\n\n```php\n[\n     \"date\" =\u003e function ($option, $value) {\n        return wp_date($option, is_numeric($value) ? $value : strtotime($value));\n    },\n    \"json\" =\u003e function ($option, $value) {\n        return JSON_ENCODE($value);\n    },\n    \"md5\" =\u003e function ($option, $value) {\n        return md5($value);\n    },\n    \"striptags\" =\u003e function ($option, $value) {\n        return striptags($value);\n    },\n    \"htmlencode\" =\u003e function ($option, $value) {\n        return htmlentities($value);\n    },\n    \"urlencode\" =\u003e function ($option, $value) {\n        return urlencode($value);\n    },\n    \"base64encode\" =\u003e function ($option, $value) {\n        return base64_encode($value);\n    },\n    \"slug\" =\u003e function ($option, $value) {\n        return sanitize_title($value);\n    },\n    \"numberformat\" =\u003e function ($option, $value) {\n        return number_format_i18n($value);\n    },\n    \"filter\" =\u003e function ($option, $value) {\n        return apply_filter($option, $value);\n    },\n];\n```\n\nYou can add more filters by accessing the global variable `$UpperCodShortcodeData`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fwp-uppercod-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuppercod%2Fwp-uppercod-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuppercod%2Fwp-uppercod-data/lists"}