WordPressMeta Box


Introduction

Simple usage of a Meta Box in the wp-admin content editors

Syntax

  • _x( 'Text', 'Description', 'textdomain') is used to add a description for the translation service instead of __( 'Text', 'textdomain') which is just the translation
  • _ex( 'Text', 'Description', 'textdomain') is used to echo translated text with a description

Remarks

The content inside the render meta box can be anything. Instead of the values being directly integrated, you can also use an include with a PHP template and use set_query_var method to pass data to it. The save would work the same way.