Skip to main content
replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
Source Link

Do not use flush_rewrite_rules() on every init, use it in your plugin’s activation hook once (exampleexample).

Side note: __('New Video') is broken. Without the second parameter textdomain this text is not translatable. Use __( 'New Video', 'your_plugin_textdomain' ) instead.

Do not use flush_rewrite_rules() on every init, use it in your plugin’s activation hook once (example).

Side note: __('New Video') is broken. Without the second parameter textdomain this text is not translatable. Use __( 'New Video', 'your_plugin_textdomain' ) instead.

Do not use flush_rewrite_rules() on every init, use it in your plugin’s activation hook once (example).

Side note: __('New Video') is broken. Without the second parameter textdomain this text is not translatable. Use __( 'New Video', 'your_plugin_textdomain' ) instead.

Source Link
fuxia
  • 107.1k
  • 38
  • 255
  • 459

Do not use flush_rewrite_rules() on every init, use it in your plugin’s activation hook once (example).

Side note: __('New Video') is broken. Without the second parameter textdomain this text is not translatable. Use __( 'New Video', 'your_plugin_textdomain' ) instead.