이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

Custom Global Variables

설명

Create your own custom variables to manage information on your website such as:

  • Phone numbers
  • Addresses
  • Social media links
  • HTML snippets
  • And anything else
    test

Easily access them globally in WordPress and PHP.

Why you need it

Rather than having to change something like an email address across multiple pages, you can do it in one place. Avoid the pitfalls of hard coding information in your WordPress theme that is likely to change.

Why it’s better

  • Your variables are stored and retrieved locally without any calls to the database. That means faster load times for your pages!
  • Variables can be accessed easily in PHP from the global scope.

사용방법

Display your variables using the shortcode syntax:

[cgv variable-name]

Or using the superglobal in PHP:

<?php echo $GLOBALS['cgv']['variable-name'] ?>

스크린샷

  • Settings -> Custom Global Variables

설치

  1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings -> Custom Global Variables screen to define your variables

후기

2022년 6월 5일
I am not one to leave reviews. But have to let you all know what a Godsend this plugin has been to me and my team!! So simple, yet so effective. Thanks again and keep up the great work.
2022년 3월 7일
I've been using CGV for a few years now. At our agency, it's become one of our go-to plugins and is installed on virtually all of our sites. No other plugin allows you to create and manage custom variables (shortcodes) as easily as Custom Global Variables. The UI is straightforward and uncluttered. I'm grateful to the developers for continuing to support and update this little gem. Hope it sticks around for many years and doesn't change too much!
2017년 5월 26일
I needed a way of presenting some data in multiple locations, being a web developer I knew I could use variables but didn't want to edit the core app or theme, so this fitted my requirements like a glove, only one bug, when you enter a variable name but not a value and save, it says save successful, but it doesn't actually save, this need a check for data, its a minor thing, once I figured out why my newly entered variables.
모든 10 평가 읽기

기여자 & 개발자

“Custom Global Variables”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Custom Global Variables”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.1.2

  • Updated to be able to use markups in value fields.

1.1.1

  • This is a security and maintenance release and we strongly encourage you to update to it immediately.

1.1.0

  • This is a security and maintenance release and we strongly encourage you to update to it immediately.

1.0.5

  • Updated accreditation
  • Updated stylesheet
  • Tested up to WordPress 5.1

1.0.4

  • Fixed folder path in error message

1.0.3

  • Changed file path to where variables are stored

1.0.2

  • Support for older versions of PHP that handle object referencing differently

1.0.1

  • Support for older versions of PHP (< 5.4) that do not allow the short array syntax